A 2D Farming RPG
This is just a simple 2D farming RPG game
|
Control store, restore, save and load functionality in the scene. More...
Public Member Functions | |
void | InstantiateSceneItem (int itemCode, Vector3 itemPosition) |
For future. Use to instantiate a single SceneItem More... | |
void | ISaveableDeregister () |
Removing the current game object to iSaveableObjectList instance in SaveLoadManager More... | |
void | ISaveableRegister () |
Adding the current game object to iSaveableObjectList instance in SaveLoadManager More... | |
void | ISaveableRestoreScene (string sceneName) |
Restore the scene More... | |
void | ISaveableStoreScene (string sceneName) |
Remove old scene data Save all the information on new scene Add that back to the GameObjectSave More... | |
void | ISaveableRegister () |
void | ISaveableDeregister () |
void | ISaveableStoreScene (string sceneName) |
void | ISaveableRestoreScene (string sceneName) |
Protected Member Functions | |
override void | Awake () |
Call the base of singleton class Initialize variables. More... | |
virtual void | Awake () |
Properties | |
string | ISaveableUniqueID [get, set] |
GameObjectSave | GameObjectSave [get, set] |
Properties inherited from SingletonMonobehaviour< SceneItemsManager > | |
static T | Instance [get] |
Properties inherited from ISaveable | |
string | ISaveableUniqueID [get, set] |
GameObjectSave | GameObjectSave [get, set] |
Private Member Functions | |
void | AfterSceneLoad () |
Find the game object of the parent More... | |
void | DestroySceneItems () |
Destroy Items currently in the scene More... | |
void | InstantiateSceneItems (List< SceneItem > sceneItemList) |
Loop through all the scene items Then instantiate a game object for each SceneItem More... | |
void | OnDisable () |
Calls ISaveableDeregister Unsubscribe from AfterSceneLoad More... | |
void | OnEnable () |
Calls ISaveableRegister Subscribe to AfterSceneLoad More... | |
Private Attributes | |
Transform | m_ParentItem |
GameObject | m_ItemPrefab = null |
string | iSaveableUniqueID |
GameObjectSave | m_GameObjectSave |
Control store, restore, save and load functionality in the scene.
Definition at line 9 of file SceneItemsManager.cs.
|
inlineprivate |
Find the game object of the parent
Definition at line 25 of file SceneItemsManager.cs.
|
inlineprotectedvirtual |
Call the base of singleton class Initialize variables.
Reimplemented from SingletonMonobehaviour< SceneItemsManager >.
Definition at line 34 of file SceneItemsManager.cs.
|
inlineprivate |
Destroy Items currently in the scene
Definition at line 45 of file SceneItemsManager.cs.
|
inline |
For future. Use to instantiate a single SceneItem
Definition at line 61 of file SceneItemsManager.cs.
|
inlineprivate |
Loop through all the scene items Then instantiate a game object for each SceneItem
Definition at line 72 of file SceneItemsManager.cs.
|
inline |
Removing the current game object to iSaveableObjectList instance in SaveLoadManager
Implements ISaveable.
Definition at line 109 of file SceneItemsManager.cs.
|
inline |
Adding the current game object to iSaveableObjectList instance in SaveLoadManager
Implements ISaveable.
Definition at line 117 of file SceneItemsManager.cs.
|
inline |
Restore the scene
sceneName |
Implements ISaveable.
Definition at line 126 of file SceneItemsManager.cs.
|
inline |
Remove old scene data Save all the information on new scene Add that back to the GameObjectSave
sceneName |
Implements ISaveable.
Definition at line 147 of file SceneItemsManager.cs.
|
inlineprivate |
Calls ISaveableDeregister Unsubscribe from AfterSceneLoad
Definition at line 90 of file SceneItemsManager.cs.
|
inlineprivate |
Calls ISaveableRegister Subscribe to AfterSceneLoad
Definition at line 100 of file SceneItemsManager.cs.
|
private |
Definition at line 15 of file SceneItemsManager.cs.
|
private |
Definition at line 17 of file SceneItemsManager.cs.
|
private |
Definition at line 13 of file SceneItemsManager.cs.
|
private |
Definition at line 11 of file SceneItemsManager.cs.
|
getset |
Implements ISaveable.
Definition at line 20 of file SceneItemsManager.cs.
|
getset |
Implements ISaveable.
Definition at line 19 of file SceneItemsManager.cs.