Class ItemChangerMod
Inheritance
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class ItemChangerMod : Mod
Constructors
| Improve this Doc View SourceItemChangerMod()
Declaration
public ItemChangerMod()
Properties
| Improve this Doc View SourceModules
Declaration
public static ModuleCollection Modules { get; }
Property Value
| Type | Description |
|---|---|
| ModuleCollection |
Methods
| Improve this Doc View SourceAddDeployer(IDeployer)
Add an event to instantiate an object at a given place to Settings. Primarily used for adding platforms, and similar preloaded objects.
Declaration
public static void AddDeployer(IDeployer deployer)
Parameters
| Type | Name | Description |
|---|---|---|
| IDeployer | deployer |
AddPlacements(IEnumerable<AbstractPlacement>, PlacementConflictResolution)
Adds placements to local settings, with handling for placements with the same name.
Declaration
public static void AddPlacements(IEnumerable<AbstractPlacement> placements, PlacementConflictResolution conflictResolution = PlacementConflictResolution.MergeKeepingNew)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<AbstractPlacement> | placements | The placements to add to the local settings. |
| PlacementConflictResolution | conflictResolution | The action if a placement already exists in settings with the same name. |
AddTransitionOverride(Transition, ITransition)
Adds the override to SaveSettings. Overwrites any existing override for source.
Declaration
public static void AddTransitionOverride(Transition source, ITransition target)
Parameters
| Type | Name | Description |
|---|---|---|
| Transition | source | |
| ITransition | target |
ChangeStartGame(StartDef)
Declaration
public static void ChangeStartGame(StartDef start)
Parameters
| Type | Name | Description |
|---|---|---|
| StartDef | start |
CreateSettingsProfile(Settings)
Create a settings profile from an existing Settings object (e.g. settings loaded from an external serialized source).
Declaration
public static void CreateSettingsProfile(Settings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| Settings | settings | The Settings object to save to local settings. |
CreateSettingsProfile(Boolean)
Create default ItemChanger settings for the save. Required before all operations which modify settings data.
Declaration
public static void CreateSettingsProfile(bool overwrite = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | overwrite | If settings data already exists, should it be overwritten? |
CreateSettingsProfile(Boolean, Boolean)
Create default ItemChanger settings for the save, with an option for whether default modules should be automatically added. Required before all operations which modify settings data.
Declaration
public static void CreateSettingsProfile(bool overwrite, bool createDefaultModules)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | overwrite | If settings data already exists, should it be overwritten? |
| System.Boolean | createDefaultModules | If a new profile is created, should it include all default modules? |
GetPreloadNames()
Declaration
public override List<(string, string)> GetPreloadNames()
Returns
| Type | Description |
|---|---|
| List<System.ValueTuple<System.String, System.String>> |
GetVersion()
Declaration
public override string GetVersion()
Returns
| Type | Description |
|---|---|
| System.String |
Initialize(Dictionary<String, Dictionary<String, GameObject>>)
Declaration
public override void Initialize(Dictionary<string, Dictionary<string, GameObject>> preloadedObjects)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<System.String, Dictionary<System.String, GameObject>> | preloadedObjects |
LoadPriority()
Declaration
public override int LoadPriority()
Returns
| Type | Description |
|---|---|
| System.Int32 |