protected void InitializePlayer(byte type, List<byte> data)
{
if (!m_owner.BotGameData.Me.Initialized)
{
byte[] packet = data.ToArray();
UInt32 id = BitConverter.ToUInt32(packet, 1);
GameData.CharacterClassType charClass = (GameData.CharacterClassType)data[5];
UInt32 x = BitConverter.ToUInt16(packet,22);
UInt32 y = BitConverter.ToUInt16(packet, 24);
Player newPlayer = new Player(m_owner.Character, id, charClass, m_owner.CharacterLevel,(int)x,(int)y);
m_owner.BotGameData.Me = newPlayer;
}
}