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 void CallRecordSave(Record record, ISavable savable, SaveID Id) { if (record.RecordGameData.ContainsKey(Id)) { record.RecordGameData[Id] = savable.OnSave(); } else { record.RecordGameData.Add(Id, savable.OnSave()); } }
public void CallGlobalDataSave(ISavable savable, SaveID Id) { if (GlobalGameData.ContainsKey(Id)) { GlobalGameData[Id] = savable.OnSave(); } else { GlobalGameData.Add(Id, savable.OnSave()); } }
public void RemoveFromRecordData(Record record, SaveID saveID) { record.RecordGameData.Remove(saveID); }
public void RemoveFromGlobalData(SaveID saveID) { GlobalGameData.Remove(saveID); }