Пример #1
0
        public static MonsterSaveDetails GetSaveData()
        {
            var data = new MonsterSaveDetails();

            data.CurrentMaxId    = currentMaxId;
            data.FreeActorIds    = freeMonsterIds;
            data.CurrentMonsters = monsters;

            return(data);
        }
Пример #2
0
 public static void LoadSaveData(MonsterSaveDetails data)
 {
     currentMaxId   = data.CurrentMaxId;
     freeMonsterIds = data.FreeActorIds;
     monsters       = data.CurrentMonsters;
 }