BattleNet.GameServer.PlayerUpdate C# (CSharp) Method

PlayerUpdate() protected method

protected PlayerUpdate ( byte type, List data ) : void
type byte
data List
return void
        protected void PlayerUpdate(byte type, List<byte> data)
        {
            byte[] packet = data.ToArray();
            UInt32 playerId = BitConverter.ToUInt32(packet, 2);
            Player current_player = m_owner.BotGameData.GetPlayer(playerId);
            current_player.Location = new Coordinate(BitConverter.ToUInt16(packet,7),BitConverter.ToUInt16(packet,9));
            current_player.DirectoryKnown = true;
        }