Example #1
0
 public void CallGlobalDataLoad(ISavable savable, SaveID Id)
 {
     if (GlobalGameData.ContainsKey(Id))
     {
         savable.OnLoad(GlobalGameData[Id]);
     }
 }
Example #2
0
 public void CallRecordDataLoad(Record record, ISavable savable, SaveID Id)
 {
     if (record.RecordGameData.ContainsKey(Id))
     {
         savable.OnLoad(record.RecordGameData[Id]);
     }
 }
Example #3
0
        public async void Load <T>(ISavable <T> savable)
        {
            var tmp = await backEndSaveSystem.Load <T>(objectID);

            savable.OnLoad(tmp);
            EventBroker.Instance().SendMessage(new EventAfterLoad(objectID));
            //Debug.Log("Object loaded from backEndSaveSystem: " + objectID);
        }