public override void Deserialize(ICustomDataReader reader) { base.Deserialize(reader); this.PartyType = reader.ReadByte(); this.PartyLeaderId = reader.ReadVarLong(); this.MaxParticipants = reader.ReadByte(); int MembersLen = reader.ReadShort(); Members = new PartyMemberInformations[MembersLen]; for (int i = 0; i < MembersLen; i++) { this.Members[i] = ProtocolTypeManager.GetInstance <PartyMemberInformations>(reader.ReadShort()); this.Members[i].Deserialize(reader); } int GuestsLen = reader.ReadShort(); Guests = new PartyGuestInformations[GuestsLen]; for (int i = 0; i < GuestsLen; i++) { this.Guests[i] = new PartyGuestInformations(); this.Guests[i].Deserialize(reader); } this.Restricted = reader.ReadBoolean(); this.PartyName = reader.ReadUTF(); }
public override void Deserialize(ICustomDataReader reader) { base.Deserialize(reader); this.Guest = new PartyGuestInformations(); this.Guest.Deserialize(reader); }
public PartyNewGuestMessage InitPartyNewGuestMessage(PartyGuestInformations Guest) { this.Guest = Guest; return(this); }