A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
GameObjectSave.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
7[System.Serializable]
8public class GameObjectSave
9{
10 // string key == scene name
11 public Dictionary<string, SceneSave> m_SceneData;
12
17 {
18 m_SceneData = new Dictionary<string, SceneSave>();
19 }
20
25 public GameObjectSave( Dictionary<string, SceneSave> sceneData )
26 {
27 this.m_SceneData = sceneData;
28 }
29}
Store all scenes in here. If we have 3 scenes, we have 3 entries.
Dictionary< string, SceneSave > m_SceneData
GameObjectSave(Dictionary< string, SceneSave > sceneData)
A constructor to pass data
GameObjectSave()
Default constructor