Closed AgentFire closed 8 years ago
Added bool ReadMessage(out NetIncomingMessage message) for simplifying cases like this:
bool ReadMessage(out NetIncomingMessage message)
NetIncomingMessage msg; while ((msg = NetClient.ReadMessage()) != null) { }
NetIncomingMessage msg;
while ((msg = NetClient.ReadMessage()) != null) { }
into this:
NetIncomingMessage msg; while (NetClient.ReadMessage(out msg)) { }
while (NetClient.ReadMessage(out msg)) { }
Thanks!
Added
bool ReadMessage(out NetIncomingMessage message)
for simplifying cases like this:NetIncomingMessage msg;
while ((msg = NetClient.ReadMessage()) != null) { }
into this:
NetIncomingMessage msg;
while (NetClient.ReadMessage(out msg)) { }