public bool Write(Protocol.StreamWriter writer) { bool result = true; do { result &= writer.Write(ID); if (!result) { break; } result &= writer.Write(roomtype); if (!result) { break; } } while (false); return(result); }
public bool Write(Protocol.StreamWriter writer) { bool result = true; do { result &= writer.Write(ID); if (!result) { break; } result &= writer.Write(result); if (!result) { break; } result &= writer.Write(playerCount); if (!result) { break; } result &= writer.Write(listID); if (!result) { break; } result &= writer.Write(playerCSN); if (!result) { break; } result &= writer.Write(playerGSN); if (!result) { break; } result &= writer.Write(nickName); if (!result) { break; } result &= writer.Write(publicIP); if (!result) { break; } } while (false); return(result); }