public Moves(SaveManager.Data.SaveFile.PTUSaveData _SaveData, VPTU.Pokedex.Moves.MoveData _MoveData = null)
        {
            InitializeComponent();// Creates the Window

            SaveData = _SaveData;

            Setup();// Executes the setup script

            if (_MoveData == null)
            {
                MoveData = new VPTU.Pokedex.Moves.MoveData();// If no specified data, then create a new data class
            }
            else
            {
                MoveData = _MoveData; // Save the specified data class to a variable for latter
                Load();               // Load the data
            }
        }
Пример #2
0
        public Pokemon(SaveManager.Data.SaveFile.PTUSaveData _SaveData, VPTU.Pokedex.Pokemon.PokemonData _PokemonData = null)
        {
            InitializeComponent(); // Sets up the window

            SaveData = _SaveData;  // Creates Save Data Reference

            Setup();               // Executes Setup Code

            if (_PokemonData == null)
            {
                PokemonData = new VPTU.Pokedex.Pokemon.PokemonData();
            }
            else
            {
                PokemonData = _PokemonData;
                Update      = true;
                Load();
            }
        }