Пример #1
0
 public static void writeSaveData(ref SerializationInfo info, ref StreamingContext context)
 {
     foreach (Upgrade item in cashUpgradeList)
     {
         info.AddValue("upgrade_" + item.saveName, item.getIsPurchased());
     }
     foreach (Upgrade item in renownUpgradeList)
     {
         info.AddValue("renown_upgrade_" + item.saveName, item.getIsPurchased());
     }
     for (int i = 0; i < availableMasters.Length; i++)
     {
         info.AddValue("availableMasters_" + i, availableMasters[i]);
     }
     SkillList.writeSaveData(ref info, ref context);
 }