The base implementation for all gameobjects that should be saved. It is able to serialize the transform and parent data with the SaveGameManager. Requires a PrefabManager and aIDManager, if the objects are not initially found in the scene.
|
| abstract void | LoadData (GameData data) |
| | Is called after the base data is loaded in Load. Allows additional data to be deserialized.
|
| |
| abstract List< GameData > | SaveData () |
| | Is called on Save. Allows the definition of all additional GameData to be serialized.
|
| |
| abstract void | OnObjectDeleted () |
| | A method called on deletion, that is that the object is removed from the save game and destroyed. It is not called when destroyed but saved.
|
| |
|
| string | ID [get, set] |
| | A unique ID.
|
| |
| bool | InEditor [get] |
| | Whether the gameobject is found in the scene initally. Or created dynamically.
|
| |
◆ Load()
◆ LoadData()
| abstract void Saveable.LoadData |
( |
GameData |
data | ) |
|
|
protectedpure virtual |
◆ OnObjectDeleted()
| abstract void Saveable.OnObjectDeleted |
( |
| ) |
|
|
protectedpure virtual |
◆ OnValidate()
| void Saveable.OnValidate |
( |
| ) |
|
◆ Save()
◆ SaveData()
| abstract List< GameData > Saveable.SaveData |
( |
| ) |
|
|
protectedpure virtual |
◆ _removeFromSaveOnDelete
| bool Saveable._removeFromSaveOnDelete |
|
protected |
◆ PrefabData
◆ ID
◆ InEditor