コード例 #1
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());
     }
 }
コード例 #2
0
 public void CallGlobalDataSave(ISavable savable, SaveID Id)
 {
     if (GlobalGameData.ContainsKey(Id))
     {
         GlobalGameData[Id] = savable.OnSave();
     }
     else
     {
         GlobalGameData.Add(Id, savable.OnSave());
     }
 }