public void CallGlobalDataLoad(ISavable savable, SaveID Id) { if (GlobalGameData.ContainsKey(Id)) { savable.OnLoad(GlobalGameData[Id]); } }
public void CallRecordDataLoad(Record record, ISavable savable, SaveID Id) { if (record.RecordGameData.ContainsKey(Id)) { savable.OnLoad(record.RecordGameData[Id]); } }
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); }