public override void CheckForPackets() { while (LocalClientServer.ClientToServerPending()) { BinaryReader reader = LocalClientServer.ReadClientToServerPacket(); OnReceivePacket((PacketID)reader.ReadByte(), reader); LocalClientServer.EndReadingClientToServerPacket(); } }
public override bool PacketPending() { return(LocalClientServer.ClientToServerPending()); }