A base class implementing the IMMPersistent interface, designed to be extended This mostly takes care of the GUID generation and validation
More...
|
virtual string | GetGuid () |
| Returns the object's GUID More...
|
|
virtual void | SetGuid (string newGUID) |
| Lets you set the object's GUID More...
|
|
virtual string | OnSave () |
| On save, does nothing, meant to be extended More...
|
|
virtual void | OnLoad (string data) |
| On load, does nothing, meant to be extended More...
|
|
virtual bool | ShouldBeSaved () |
| Lets the persistence manager know whether or not the object should be saved More...
|
|
virtual string | GenerateGuid () |
| Generates a unique ID for the object, using the scene name, the object name, and a GUID More...
|
|
virtual bool | GuidIsUnique (string guid) |
| Checks if the object's ID is unique or not More...
|
|
virtual void | ValidateGuid () |
| Validates the object's GUID, and generates a new one if needed, until a unique one is found More...
|
|
|
virtual void | OnValidate () |
| On validate, we make sure the object gets a valid GUID More...
|
|
A base class implementing the IMMPersistent interface, designed to be extended This mostly takes care of the GUID generation and validation
◆ GenerateGuid()
virtual string MoreMountains.Tools.MMPersistentBase.GenerateGuid |
( |
| ) |
|
|
virtual |
Generates a unique ID for the object, using the scene name, the object name, and a GUID
- Returns
◆ GetGuid()
virtual string MoreMountains.Tools.MMPersistentBase.GetGuid |
( |
| ) |
|
|
virtual |
◆ GuidIsUnique()
virtual bool MoreMountains.Tools.MMPersistentBase.GuidIsUnique |
( |
string |
guid | ) |
|
|
virtual |
Checks if the object's ID is unique or not
- Parameters
-
- Returns
◆ OnLoad()
virtual void MoreMountains.Tools.MMPersistentBase.OnLoad |
( |
string |
data | ) |
|
|
virtual |
◆ OnSave()
virtual string MoreMountains.Tools.MMPersistentBase.OnSave |
( |
| ) |
|
|
virtual |
◆ OnValidate()
virtual void MoreMountains.Tools.MMPersistentBase.OnValidate |
( |
| ) |
|
|
protectedvirtual |
On validate, we make sure the object gets a valid GUID
◆ SetGuid()
virtual void MoreMountains.Tools.MMPersistentBase.SetGuid |
( |
string |
newGUID | ) |
|
|
virtual |
Lets you set the object's GUID
- Parameters
-
◆ ShouldBeSaved()
virtual bool MoreMountains.Tools.MMPersistentBase.ShouldBeSaved |
( |
| ) |
|
|
virtual |
◆ ValidateGuid()
virtual void MoreMountains.Tools.MMPersistentBase.ValidateGuid |
( |
| ) |
|
|
virtual |
Validates the object's GUID, and generates a new one if needed, until a unique one is found
◆ _guid
string MoreMountains.Tools.MMPersistentBase._guid |
|
protected |
◆ GenerateGuidButton
bool MoreMountains.Tools.MMPersistentBase.GenerateGuidButton |
a debug button used to force a new GUI generation
◆ SaveActive
bool MoreMountains.Tools.MMPersistentBase.SaveActive = true |
whether or not this object should be saved
◆ UniqueIDSuffix
string MoreMountains.Tools.MMPersistentBase.UniqueIDSuffix |
an optional suffix to add to the GUID, to make it more readable
The documentation for this class was generated from the following file: