Enumerations | |
enum | component_type { ERA, SCENARIO, MODIFICATION } |
Functions | |
MAKE_ENUM (component_availabilty,(SP,"sp")(MP,"mp")(HYBRID,"hybrid")) class manager | |
Note to all triers: It's not guaranteed that the specified component will be selected (if the user denies to perform dependency resolution, all changes will be reverted). More... | |
Enumerator | |
---|---|
ERA | |
SCENARIO | |
MODIFICATION |
Definition at line 32 of file depcheck.hpp.
ng::depcheck::MAKE_ENUM | ( | component_availabilty | , |
(SP,"sp")(MP,"mp")(HYBRID,"hybrid") | |||
) |
Note to all triers: It's not guaranteed that the specified component will be selected (if the user denies to perform dependency resolution, all changes will be reverted).
Consequently, it's essential to check the selected values after calling any trier.
Note to ctor & insert_element: Please note that the ctor collects data for scenario elements from "multiplayer" nodes, while insert_element from "scenario" nodes.
Tries to set the selected era
id | the id of the era |
force | whether to skip dependency check |
Tries to set the selected scenario
id | the id of the scenario |
force | whether to skip dependency check |
Tries to set the enabled modifications
ids | the ids of the modifications |
force | whether to skip dependency check |
Tries to enable/disable a specific modification
index | the index of the modification |
activate | activate or deactivate |
force | whether to skip dependency check |
Tries to set the selected era
index | the index of the era |
force | whether to skip dependency check |
Tries to set the selected scenario
index | the index of the scenario |
force | whether to skip dependency check |
Returns the selected era
Returns the selected scenario
Returns the enabled modifications
Tells whether a certain mod is activated.
index | the index of the mod |
Returns the selected era
Returns the selected scenario
Adds a new element to the manager's database
type | the type of the element |
data | a config object containing the dependency info for the element |
index | where to insert the element |
represents a component (era, modification or scenario)
the screen to display dialogs on
holds all required info about the components and their dependencies
the id of the currently selected era
the id of the currently selected scenario
the ids of the currently selected modifications
used by save_state() and revert() to backup/restore era_
used by save_state() and revert() to backup/restore scenario_
used by save_state() and revert() to backup/restore mods_
saves the current values of era_, scenarios_ and mods_
restores the lastly saved values of era_, scenarios_ and mods_
Attempts to change the selected scenario.
id | the scenario's id |
Attempts to change the selected era.
id | the era's id |
Attempts to change the selected modifications.
modifications | the list of the modifications' ids |
Decides if two components are conflicting or not
elem1 | the first component |
elem2 | the second component |
directonly | whether the function should ignore any possible conflicts between the components' dependencies. |
Decides whether e1 requires e2
elem1 | a component; by definition, passing a modification here makes no sense |
elem2 | another component; by definition, passing anything else than a modification here makes no sense |
Get the list of modifications required by a certain component
e | the component |
Get the list of modifications which are required by a certain component, but aren't currently enabled
e | the component |
Get the list of modifications which are conflicting a certain component and are currently enabled
e | the component |
Get the list of modifications which are required by a certain component, but currently unavailable on the computer
e | the component |
Display a dialog requesting confirmation for enabling some modifications
mods | the list of modifications to be enabled |
requester | the add-on's name which requests the action to be done |
Display a dialog requesting confirmation for disabling some modifications
mods | the list of modifications to be disabled |
requester | the add-on's name which requests the action to be done |
Display a dialog requesting the user to select a new era
eras | the possible options (ids) |
Display a dialog requesting the user to select a new scenario
scenarios | the possible options (ids) |
Shows an error message
msg | the message to be displayed |
Decides whether a certain component is installed or not
e | the component |
Look up the name of a given component.
e | the component |
Definition at line 39 of file depcheck.hpp.
References _(), e, image::exists(), preferences::modifications(), game_logic::msg(), operator!=(), and operator==().