public bool Read(Protocol.StreamReader reader) { bool result = true; do { uint id = 0; result &= reader.Read(ref id); if (!result || id != ID) { break; } result &= reader.Read(ref roomtype); if (!result) { break; } } while (false); return(result); }
public bool Read(Protocol.StreamReader reader) { bool result = true; do { uint id = 0; result &= reader.Read(ref id); if (!result || id != ID) { break; } result &= reader.Read(ref result); if (!result) { break; } result &= reader.Read(ref playerCount); if (!result) { break; } result &= reader.Read(ref listID); if (!result) { break; } result &= reader.Read(ref playerCSN); if (!result) { break; } result &= reader.Read(ref playerGSN); if (!result) { break; } result &= reader.Read(ref nickName); if (!result) { break; } result &= reader.Read(ref publicIP); if (!result) { break; } } while (false); return(result); }