コード例 #1
0
 public void AddPokemon(IPokemon pokemon)
 {
     pokePC.GameSave.IsChanged = true;
     IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null);
     if (pkm != null) {
         pkm.PokeContainer = this;
         if (pokePC.GameSave != null)
             ((GCGameSave)pokePC.GameSave).RegisterPokemon(pkm);
         party.Add(pkm);
     }
 }
コード例 #2
0
        public void AddPokemon(IPokemon pokemon)
        {
            pokePC.GameSave.IsChanged = true;
            IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null);

            pkm.GameType      = GameType;
            pkm.PokeContainer = this;
            if (pokePC.GameSave != null)
            {
                pokePC.GameSave.OwnPokemon(pkm);
            }
            depositedPokemon    = pkm as ColosseumPokemon;
            depositedPokemon    = pkm as ColosseumPokemon;
            DaycareStatus       = 1;
            InitialLevel        = 0;
            InitialPurification = 0;
        }
コード例 #3
0
 public void AddPokemon(IPokemon pokemon)
 {
     pokePC.GameSave.IsChanged = true;
     IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null);
     pkm.GameType = GameType;
     pkm.PokeContainer = this;
     if (pokePC.GameSave != null)
         pokePC.GameSave.OwnPokemon(pkm);
     depositedPokemon = pkm as ColosseumPokemon;
     depositedPokemon = pkm as ColosseumPokemon;
     DaycareStatus = 1;
     InitialLevel = 0;
     InitialPurification = 0;
 }
コード例 #4
0
        public void AddPokemon(IPokemon pokemon)
        {
            pokePC.GameSave.IsChanged = true;
            IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null);

            if (pkm != null)
            {
                pkm.PokeContainer = this;
                if (pokePC.GameSave != null)
                {
                    ((GCGameSave)pokePC.GameSave).RegisterPokemon(pkm);
                }
                party.Add(pkm);
            }
        }