예제 #1
0
        public SharedSecretBase AddSecretBase(PlayerSecretBase secretBase)
        {
            GameSave.IsChanged = true;
            SharedSecretBase newSecretBase = new SharedSecretBase(secretBase, this);

            secretBases.Add(newSecretBase);
            Sort();
            return(newSecretBase);
        }
예제 #2
0
        public SharedSecretBase(PlayerSecretBase copy, SecretBaseManager secretBaseManager)
            : this(copy.LocationID, secretBaseManager)
        {
            TrainerName   = copy.TrainerName;
            TrainerGender = copy.TrainerGender;
            TrainerID     = copy.TrainerID;
            SecretID      = copy.SecretID;
            Language      = copy.Language;
            foreach (GBAPokemon pokemon in copy.PokemonTeam)
            {
                pokemonTeam.Add((GBAPokemon)pokemon.Clone());
            }

            foreach (PlacedDecoration decoration in copy.PlacedDecorations)
            {
                placedDecorations.Add(new PlacedDecoration(decoration));
            }
        }