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()); } }