Update configuration files.

This commit is contained in:
Mikaël Capelle
2021-01-01 19:37:54 +01:00
parent 15d43de37e
commit df29edf5a5
3 changed files with 65 additions and 7 deletions
+17 -1
View File
@@ -873,6 +873,18 @@ mobase:
absolutePath:
returns: Absolute path to the mod to be used in file system operations.
isBackup:
returns: True if this mod represents a backup.
isForeign:
returns: True if this mod represents a foreign mod, not managed by MO2.
isOverwrite:
returns: True if this mod represents the overwrite mod.
isSeparator:
returns: True if this mod represents a separator.
name:
returns: The name of this mod.
@@ -1840,6 +1852,8 @@ mobase:
The master plugin of this plugin, or a null pointer if this plugin does not have a master.
requirements:
abstract: false
__doc__: |
Retrieve the requirements for this plugin.
@@ -2145,6 +2159,7 @@ mobase:
returns: True if this installer is a manual installer, False otherwise.
onInstallationStart:
abstract: false
__doc__: |
Method calls at the start of the installation process, before any other methods.
This method is only called once per installation process, even for recursive
@@ -2165,6 +2180,7 @@ mobase:
if there is no such mod.
onInstallationEnd:
abstract: false
__doc__: |
Method calls at the end of the installation process. This method is only called once
per installation process, even for recursive installations (e.g. with the bundle installer).
@@ -2183,12 +2199,12 @@ mobase:
returns: The priority of this installer.
setInstallationManager:
abstract: false
__doc__: |
Set the installation manager for this installer.
Python plugins usually do not need to re-implement this and can directly access the installation
manager using `_manager()`.
abstract: false
args:
manager: The installation manager.
+24 -3
View File
@@ -1246,6 +1246,30 @@ class IModInterface:
The absolute path to the file that was used to install this mod.
"""
...
def isBackup(self) -> bool:
"""
Returns:
True if this mod represents a backup.
"""
...
def isForeign(self) -> bool:
"""
Returns:
True if this mod represents a foreign mod, not managed by MO2.
"""
...
def isOverwrite(self) -> bool:
"""
Returns:
True if this mod represents the overwrite mod.
"""
...
def isSeparator(self) -> bool:
"""
Returns:
True if this mod represents a separator.
"""
...
def name(self) -> str:
"""
Returns:
@@ -2315,7 +2339,6 @@ class IPlugin(abc.ABC):
The name of the plugin.
"""
...
@abc.abstractmethod
def requirements(self) -> List["IPluginRequirement"]:
"""
Retrieve the requirements for this plugin.
@@ -2813,7 +2836,6 @@ class IPluginInstaller(IPlugin):
True if this installer is a manual installer, False otherwise.
"""
...
@abc.abstractmethod
def onInstallationEnd(self, result: "InstallResult", new_mod: "IModInterface"):
"""
Method calls at the end of the installation process. This method is only called once
@@ -2825,7 +2847,6 @@ class IPluginInstaller(IPlugin):
installed mod, otherwise it contains a null pointer.
"""
...
@abc.abstractmethod
def onInstallationStart(
self, archive: str, reinstallation: bool, current_mod: "IModInterface"
):
+24 -3
View File
@@ -1246,6 +1246,30 @@ class IModInterface:
The absolute path to the file that was used to install this mod.
"""
...
def isBackup(self) -> bool:
"""
Returns:
True if this mod represents a backup.
"""
...
def isForeign(self) -> bool:
"""
Returns:
True if this mod represents a foreign mod, not managed by MO2.
"""
...
def isOverwrite(self) -> bool:
"""
Returns:
True if this mod represents the overwrite mod.
"""
...
def isSeparator(self) -> bool:
"""
Returns:
True if this mod represents a separator.
"""
...
def name(self) -> str:
"""
Returns:
@@ -2315,7 +2339,6 @@ class IPlugin(abc.ABC):
The name of the plugin.
"""
...
@abc.abstractmethod
def requirements(self) -> List["IPluginRequirement"]:
"""
Retrieve the requirements for this plugin.
@@ -2813,7 +2836,6 @@ class IPluginInstaller(IPlugin):
True if this installer is a manual installer, False otherwise.
"""
...
@abc.abstractmethod
def onInstallationEnd(self, result: "InstallResult", new_mod: "IModInterface"):
"""
Method calls at the end of the installation process. This method is only called once
@@ -2825,7 +2847,6 @@ class IPluginInstaller(IPlugin):
installed mod, otherwise it contains a null pointer.
"""
...
@abc.abstractmethod
def onInstallationStart(
self, archive: str, reinstallation: bool, current_mod: "IModInterface"
):