override public int GetSize() { int size = base.GetSize(); size += EncodeCount(Id); size += EncodeCount(Name); size += EncodeCount(Kind); size += EncodeCount(Icon); size += EncodeCount(Owner); size += EncodeCount(UserCount); size += EncodeCount(Cash); size += EncodeCount(Point); size += EncodeCount(MaxUsers); size += EncodeCount(IsGame); size += EncodeCount(RoomPass); if (IsGame > 0) { size += _GameInfo.GetSize(); } size += EncodeCount(_strUserID); size += EncodeCount(_strTargetID); return(size); }
override public int GetSize() { int size = base.GetSize() + 4; for (int i = 0; i < listGameFile.Count; i++) { size += EncodeCount(listGameFile[i]); } size += gameInfo.GetSize(); return(size); }