Class UpdateAction
Action to execute to update data to the version associated with this action.
Inheritance
System.Object
UpdateAction
Namespace: InsaneScatterbrain.Editor.Updates
Syntax
public abstract class UpdateAction : IComparable<UpdateAction>
Properties
Version
Gets the version to update to.
Declaration
public abstract Version Version { get; }
Property Value
Type | Description |
---|---|
Version |
Methods
CompareTo(UpdateAction)
Declaration
public int CompareTo(UpdateAction other)
Parameters
Type | Name | Description |
---|---|---|
UpdateAction | other |
Returns
Type | Description |
---|---|
System.Int32 |
GetPrivateField<ClassType>(String)
Gets field info of the given private field.
Declaration
protected static FieldInfo GetPrivateField<ClassType>(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | The private field's name. |
Returns
Type | Description |
---|---|
FieldInfo | The field info for the private field. |
Type Parameters
Name | Description |
---|---|
ClassType | The class containing the private field. |
Save<T>(T)
Save update changes to the object.
Declaration
protected void Save<T>(T obj)
where T : UnityEngine.Object, IVersioned
Parameters
Type | Name | Description |
---|---|---|
T | obj | The updated object. |
Type Parameters
Name | Description |
---|---|
T | The type of the update object. |
UpdateAssets()
Runs the action to update the assets.
Declaration
public abstract void UpdateAssets()
UpdateScene()
Runs the action to update the current scene.
Declaration
public abstract void UpdateScene()