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