/// <summary> /// Creates a new instance of all objects that are null /// </summary> public void InitNullObjects() { if (Trainers == null) { Trainers = new List <BattleManager.Entity.Trainer.EntityTrainerData>(); } if (Pokemon == null) { Pokemon = new List <BattleManager.Entity.Pokemon.EntityPokemonData>(); } if (EntityGroups == null) { EntityGroups = new List <BattleManager.Entity.EntityGroup>(); } //MapFiles = new List<Resources.MapFileData>(); //Maps = new List<Resources.MapData>(); if (AudioResources == null) { AudioResources = new List <SoundSystem.SaveData.AudioData>(); } ImageResources = new List <Resource_Data.Resources>(); PokedexData.InitNullObjects(); }
/// <summary> /// Creates a new instance of all objects that are null /// </summary> public void InitNullObjects() { //MapFiles = new List<Resources.MapFileData>(); //Maps = new List<Resources.MapData>(); if (AudioResources == null) { AudioResources = new List <SoundSystem.SaveData.AudioData>(); } if (ImageResources == null) { ImageResources = new List <Resource_Data.Resources>(); } PokedexData.InitNullObjects(); }