public void SendMessage(IProtocol message) { if (state == ENetState.Connected) { message.ToBytes(ProtocolOutput.ExploreToScratch, out var e, out var bytes); if (bytes.Length > 0) { mServer.SendMessage(message.host, bytes); } } }
public void SendMessage(IProtocol message) { if (state == ENetState.Connected) { message.ToBytes(ProtocolOutput.ExploreToScratch, out var e, out var bytes); if (bytes.Length > 0) { mServer.SendMessage(message.host, bytes); } } }