Loading...
Searching...
No Matches
PixelCrushers.SpawnedObjectManager Class Reference

Manages spawned objects for a scene. More...

Inheritance diagram for PixelCrushers.SpawnedObjectManager:
Collaboration diagram for PixelCrushers.SpawnedObjectManager:

Classes

class  SpawnedObjectData
 
class  SpawnedObjectDataList
 

Public Member Functions

override void Reset ()
 
override void Awake ()
 
override string RecordData ()
 
override void ApplyData (string data)
 
- Public Member Functions inherited from PixelCrushers.Saver
virtual void Start ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void OnDestroy ()
 
string RecordData ()
 This method should return a string that represents the data you want to save.
 
void ApplyData (string s)
 This method should process the string representation of saved data and apply it to the current state of the game.
 
virtual void ApplyDataImmediate ()
 If the Saver needs to pull data from the Save System immediately after loading a scene, instead of waiting for ApplyData to be called at it its normal time, it can implement this method.
 
virtual void OnBeforeSceneChange ()
 The Save System will call this method before scene changes.
 
virtual void OnRestartGame ()
 The Save System will call this method when restarting the game.
 

Static Public Member Functions

static void AddSpawnedObjectData (SpawnedObject spawnedObject)
 
static void RemoveSpawnedObjectData (SpawnedObject spawnedObject)
 

Protected Member Functions

IEnumerator ApplyDataToRespawnedObjectsAfterFrames (int numFrames)
 
virtual void ApplyDataToRespawnedObjects ()
 
virtual SpawnedObject GetSpawnedObjectPrefab (string prefabName)
 

Properties

List< SpawnedObjectspawnedObjectPrefabs [get, set]
 
List< SpawnedObjectListspawnedObjectPrefabLists [get, set]
 
List< SpawnedObjectspawnedObjects [get, set]
 
bool applySaveDataToSpawnedObjectsOnRestore [get, set]
 
override string key [get, set]
 
- Properties inherited from PixelCrushers.Saver
bool appendSaverTypeToKey [get, set]
 Append the name of this saver type to the key.
 
virtual string key [get, set]
 Save data under this key.
 
string _internalKeyValue [get, set]
 Accesses the internal key value.
 
virtual bool saveAcrossSceneChanges [get, set]
 Save when changing scenes to be able to restore saved state when returning to scene.
 
virtual bool restoreStateOnStart [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from PixelCrushers.Saver
string m_runtimeKey = null
 

Detailed Description

Manages spawned objects for a scene.

Member Function Documentation

◆ AddSpawnedObjectData()

static void PixelCrushers.SpawnedObjectManager.AddSpawnedObjectData ( SpawnedObject  spawnedObject)
inlinestatic

◆ ApplyData()

override void PixelCrushers.SpawnedObjectManager.ApplyData ( string  data)
inline

◆ ApplyDataToRespawnedObjects()

virtual void PixelCrushers.SpawnedObjectManager.ApplyDataToRespawnedObjects ( )
inlineprotectedvirtual

◆ ApplyDataToRespawnedObjectsAfterFrames()

IEnumerator PixelCrushers.SpawnedObjectManager.ApplyDataToRespawnedObjectsAfterFrames ( int  numFrames)
inlineprotected

◆ Awake()

override void PixelCrushers.SpawnedObjectManager.Awake ( )
inlinevirtual

Reimplemented from PixelCrushers.Saver.

◆ GetSpawnedObjectPrefab()

virtual SpawnedObject PixelCrushers.SpawnedObjectManager.GetSpawnedObjectPrefab ( string  prefabName)
inlineprotectedvirtual

◆ RecordData()

override string PixelCrushers.SpawnedObjectManager.RecordData ( )
inline

◆ RemoveSpawnedObjectData()

static void PixelCrushers.SpawnedObjectManager.RemoveSpawnedObjectData ( SpawnedObject  spawnedObject)
inlinestatic

◆ Reset()

override void PixelCrushers.SpawnedObjectManager.Reset ( )
inlinevirtual

Reimplemented from PixelCrushers.Saver.

Property Documentation

◆ applySaveDataToSpawnedObjectsOnRestore

bool PixelCrushers.SpawnedObjectManager.applySaveDataToSpawnedObjectsOnRestore
getset

◆ key

override string PixelCrushers.SpawnedObjectManager.key
getset

◆ spawnedObjectPrefabLists

List<SpawnedObjectList> PixelCrushers.SpawnedObjectManager.spawnedObjectPrefabLists
getset

◆ spawnedObjectPrefabs

List<SpawnedObject> PixelCrushers.SpawnedObjectManager.spawnedObjectPrefabs
getset

◆ spawnedObjects

List<SpawnedObject> PixelCrushers.SpawnedObjectManager.spawnedObjects
getset

The documentation for this class was generated from the following file: