Пример #1
0
 public void CallGlobalDataLoad(ISavable savable, SaveID Id)
 {
     if (GlobalGameData.ContainsKey(Id))
     {
         savable.OnLoad(GlobalGameData[Id]);
     }
 }
Пример #2
0
 public void CallRecordDataLoad(Record record, ISavable savable, SaveID Id)
 {
     if (record.RecordGameData.ContainsKey(Id))
     {
         savable.OnLoad(record.RecordGameData[Id]);
     }
 }
Пример #3
0
 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());
     }
 }
Пример #4
0
 public void CallGlobalDataSave(ISavable savable, SaveID Id)
 {
     if (GlobalGameData.ContainsKey(Id))
     {
         GlobalGameData[Id] = savable.OnSave();
     }
     else
     {
         GlobalGameData.Add(Id, savable.OnSave());
     }
 }
Пример #5
0
 public void RemoveFromRecordData(Record record, SaveID saveID)
 {
     record.RecordGameData.Remove(saveID);
 }
Пример #6
0
 public void RemoveFromGlobalData(SaveID saveID)
 {
     GlobalGameData.Remove(saveID);
 }