mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-05-06 05:17:32 -05:00
That feeling when everything just works the first time
This commit is contained in:
parent
4df11f444b
commit
2e8b27de22
|
|
@ -75,18 +75,18 @@ namespace PkmnFoundations.Structures
|
|||
{
|
||||
m_data = null;
|
||||
m_data_readonly = null;
|
||||
//m_pokemon = null;
|
||||
m_pokemon = null;
|
||||
return;
|
||||
}
|
||||
if (value.Length != 0xEC) throw new ArgumentException("PKM length is incorrect");
|
||||
m_data = value;
|
||||
m_data_readonly = new ReadOnlyCollection<byte>(m_data);
|
||||
//m_pokemon = null;
|
||||
m_pokemon = null;
|
||||
}
|
||||
}
|
||||
private byte[] m_data;
|
||||
private ReadOnlyCollection<byte> m_data_readonly;
|
||||
//private PokemonParty5 m_pokemon;
|
||||
private PokemonParty5 m_pokemon;
|
||||
|
||||
public override PokemonPartyBase Pokemon
|
||||
{
|
||||
|
|
@ -94,11 +94,10 @@ namespace PkmnFoundations.Structures
|
|||
{
|
||||
if (DataActual == null || m_pokedex == null)
|
||||
return null;
|
||||
throw new NotImplementedException();
|
||||
//if (m_pokemon == null)
|
||||
// m_pokemon = new PokemonParty4(m_pokedex, DataActual);
|
||||
if (m_pokemon == null)
|
||||
m_pokemon = new PokemonParty5(m_pokedex, DataActual);
|
||||
|
||||
//return m_pokemon;
|
||||
return m_pokemon;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user