Makinom  2.21.0
API Documentation
GamingIsLove.Makinom.SceneData Class Reference
Inheritance diagram for GamingIsLove.Makinom.SceneData:
GamingIsLove.Makinom.ISaveData

Public Member Functions

 SceneData (DataObject data)
 
virtual void Clear (bool gameObjectSavers, bool prefabSavers)
 
virtual void SetAutoRemove ()
 
virtual void SceneLoaded (bool isScene, bool blockAutoRemove)
 
virtual void SetGameObjectSaverData (string sceneGUID, DataObject data)
 
virtual DataObject GetGameObjectSaverData (string sceneGUID)
 
virtual void AddPrefabSaverData (PrefabSaver guid, DataObject data)
 
virtual void SpawnAllPrefabSavers ()
 
virtual DataObject SaveGame (string sceneName, bool isCurrentScene)
 
virtual DataObject SaveGame ()
 Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject. More...
 
virtual void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject. More...
 

Protected Attributes

SceneTargetInstance scenePosition
 
Dictionary< string, DataObjectgameObjectSaverData = new Dictionary<string, DataObject>()
 
int gameObjectSaverRemoveAfter = -1
 
Dictionary< PrefabSaver, List< DataObject > > prefabSaverData = new Dictionary<PrefabSaver, List<DataObject>>()
 
int prefabSaverRemoveAfter = -1
 

Properties

virtual SceneTargetInstance ScenePosition [get, set]
 

Member Function Documentation

◆ LoadGame()

virtual void GamingIsLove.Makinom.SceneData.LoadGame ( DataObject  data)
virtual

Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject.

Parameters
dataA GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.

◆ SaveGame()

virtual DataObject GamingIsLove.Makinom.SceneData.SaveGame ( )
virtual

Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject.

Returns
A GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.