Package com.fs.starfarer.api.campaign
Interface GenericPluginManagerAPI
public interface GenericPluginManagerAPI
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Lowest priority.static final int
Should be used by core code only for specific encounters.static final int
Should only be used by core code.static final int
Absolute highest priority; shouldn't be used without good reason.static final int
Should be used by mods for wholesale replacement of campaign features.static final int
Should be used by mods for specific encounters, that is, encounters that aren't handled by any of the _GENERAL and _SET priority plugins.static final int
For a plugin that handles a set of circumstances. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPlugin
(GenericPluginManagerAPI.GenericPlugin plugin, boolean isTransient) boolean
<T> T
pickPlugin
(Class<T> c, Object params) void
-
Field Details
-
CORE_GENERAL
static final int CORE_GENERALLowest priority. Should only be used by core code, a modded plugin with this priority may not end up being used anywhere, as what gets picked when multiple plugins have the same priority is undefined.- See Also:
-
MOD_GENERAL
static final int MOD_GENERALShould be used by mods for wholesale replacement of campaign features.- See Also:
-
CORE_SUBSET
static final int CORE_SUBSETShould only be used by core code.- See Also:
-
MOD_SUBSET
static final int MOD_SUBSETFor a plugin that handles a set of circumstances. For example "interaction with all jungle worlds". Overrides any _GENERAL prioritiy implementations (i.e. "interaction with all planets"). Is overriden by _SPECIFIC priority ("interaction with this particular planet").- See Also:
-
CORE_SPECIFIC
static final int CORE_SPECIFICShould be used by core code only for specific encounters. For example, a "special" planet or fleet could have their own dialog, and the priority of this would override a mod that replaces the general interactions with all planets or fleets.- See Also:
-
MOD_SPECIFIC
static final int MOD_SPECIFICShould be used by mods for specific encounters, that is, encounters that aren't handled by any of the _GENERAL and _SET priority plugins. For example, if a specific fleet has a special encounter dialog, it would be returned using this priority.- See Also:
-
HIGHEST
static final int HIGHESTAbsolute highest priority; shouldn't be used without good reason. A mod compilation might use this to resolve conflicts introduced by mods it contains.- See Also:
-
-
Method Details
-
hasPlugin
-
addPlugin
-
addPlugin
-
removePlugin
-
getPluginsOfClass
-
pickPlugin
-