protected override void ReadData(Lidgren.Network.NetIncomingMessage Message) { p = Game.FindPlayer(Message.ReadInt32()); //TODO: nrodine3, add the player instead. Possibly merge with PlayerAdd message...? if (p != null) { p.Read(Message); } }
internal void Read(Lidgren.Network.NetIncomingMessage Message) { xpos = Message.ReadDouble(); ypos = Message.ReadDouble(); zpos = Message.ReadDouble(); PlayerID = Message.ReadInt32(); }