Esempio n. 1
0
        private void VerifyWorldProgressIsDefault(string i_saveData)
        {
            Dictionary <string, WorldProgress> worldProgress = JsonConvert.DeserializeObject <Dictionary <string, WorldProgress> >(i_saveData);

            foreach (KeyValuePair <string, WorldProgress> pair in worldProgress)
            {
                WorldProgress world = pair.Value;
                if (world.CurrentMapLevel != 0 || world.RestartCount != 0)
                {
                    IntegrationTest.Fail("World progress for " + world.ID + " not default");
                }
            }
        }
Esempio n. 2
0
 private void Awake()
 {
     Map      = new GameLogic.Map();
     Progress = new WorldProgress();
 }