Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public override void Deserialize(ICustomDataReader reader)
 {
     base.Deserialize(reader);
     this.Guest = new PartyGuestInformations();
     this.Guest.Deserialize(reader);
 }
Ejemplo n.º 3
0
 public PartyNewGuestMessage InitPartyNewGuestMessage(PartyGuestInformations Guest)
 {
     this.Guest = Guest;
     return(this);
 }