Class UpdateAction
Action to execute to update data to the version associated with this action.
Inheritance
object
UpdateAction
Implements
System.IComparable<T><UpdateAction>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|
System.Version |
Methods
CompareTo(UpdateAction)
Declaration
public int CompareTo(UpdateAction other)
Parameters
Type | Name | Description |
---|---|---|
UpdateAction | other |
Returns
Type | Description |
---|---|
int |
GetPrivateField<ClassType>(string)
Gets field info of the given private field.
Declaration
protected static FieldInfo GetPrivateField<ClassType>(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | The private field's name. |
Returns
Type | Description |
---|---|
System.Reflection.FieldInfo | The field info for the private field. |
Type Parameters
Name | Description |
---|---|
ClassType | The class containing the private field. |
Save(VersionedMonoBehaviour)
Save update changes to the object.
Declaration
protected void Save(VersionedMonoBehaviour obj)
Parameters
Type | Name | Description |
---|---|---|
VersionedMonoBehaviour | obj | The object to update. |
Save(VersionedScriptableObject)
Save update changes to the object.
Declaration
protected void Save(VersionedScriptableObject obj)
Parameters
Type | Name | Description |
---|---|---|
VersionedScriptableObject | obj | The object to update. |
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()
Implements
System.IComparable<T>