public override void CheckForPackets() { while (LocalClientServer.ServerToClientPending()) { BinaryReader reader = LocalClientServer.ReadServerToClientPacket(); OnReceivePacket((PacketID)reader.ReadByte(), reader); LocalClientServer.EndReadingServerToClientPacket(); } }
public override bool PacketPending() { return(LocalClientServer.ServerToClientPending()); }