public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); PartyType = reader.ReadByte(); PartyLeaderId = reader.ReadVarLong(); MaxParticipants = reader.ReadByte(); var countMembers = reader.ReadShort(); Members = new List <PartyMemberInformations>(); for (short i = 0; i < countMembers; i++) { var memberstypeId = reader.ReadShort(); PartyMemberInformations type = new PartyMemberInformations(); type.Deserialize(reader); Members.Add(type); } var countGuests = reader.ReadShort(); Guests = new List <PartyGuestInformations>(); for (short i = 0; i < countGuests; i++) { PartyGuestInformations type = new PartyGuestInformations(); type.Deserialize(reader); Guests.Add(type); } Restricted = reader.ReadBoolean(); PartyName = reader.ReadUTF(); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); PartyType = reader.ReadSByte(); PartyLeaderId = reader.ReadVarUhLong(); MaxParticipants = reader.ReadSByte(); var MembersCount = reader.ReadShort(); Members = new List <PartyMemberInformations>(); for (var i = 0; i < MembersCount; i++) { PartyMemberInformations objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort()); objectToAdd.Deserialize(reader); Members.Add(objectToAdd); } var GuestsCount = reader.ReadShort(); Guests = new List <PartyGuestInformations>(); for (var i = 0; i < GuestsCount; i++) { var objectToAdd = new PartyGuestInformations(); objectToAdd.Deserialize(reader); Guests.Add(objectToAdd); } Restricted = reader.ReadBoolean(); PartyName = reader.ReadUTF(); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); int membersCount = reader.ReadUShort(); int membersIndex; m_members = new System.Collections.Generic.List <PartyMemberInformations>(); for (membersIndex = 0; (membersIndex < membersCount); membersIndex = (membersIndex + 1)) { PartyMemberInformations objectToAdd = ProtocolTypeManager.GetInstance <PartyMemberInformations>((short)reader.ReadUShort()); objectToAdd.Deserialize(reader); m_members.Add(objectToAdd); } int guestsCount = reader.ReadUShort(); int guestsIndex; m_guests = new System.Collections.Generic.List <PartyGuestInformations>(); for (guestsIndex = 0; (guestsIndex < guestsCount); guestsIndex = (guestsIndex + 1)) { PartyGuestInformations objectToAdd = new PartyGuestInformations(); objectToAdd.Deserialize(reader); m_guests.Add(objectToAdd); } m_partyType = reader.ReadByte(); m_partyLeaderId = reader.ReadVarUhLong(); m_maxParticipants = reader.ReadByte(); m_restricted = reader.ReadBoolean(); m_partyName = reader.ReadUTF(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); var memberInformationsTypeId = reader.ReadShort(); MemberInformations = new PartyMemberInformations(); MemberInformations.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); this.partyType = (uint)reader.ReadByte(); if (this.partyType < 0U) { throw new Exception("Forbidden value (" + (object)this.partyType + ") on element of PartyJoinMessage.partyType."); } this.partyLeaderId = (double)reader.ReadVarUhLong(); if (this.partyLeaderId < 0.0 || this.partyLeaderId > 9.00719925474099E+15) { throw new Exception("Forbidden value (" + (object)this.partyLeaderId + ") on element of PartyJoinMessage.partyLeaderId."); } this.maxParticipants = (uint)reader.ReadByte(); if (this.maxParticipants < 0U) { throw new Exception("Forbidden value (" + (object)this.maxParticipants + ") on element of PartyJoinMessage.maxParticipants."); } uint num1 = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num1; ++index) { PartyMemberInformations instance = ProtocolTypeManager.GetInstance <PartyMemberInformations>((uint)reader.ReadUShort()); instance.Deserialize(reader); this.members.Add(instance); } uint num2 = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num2; ++index) { PartyGuestInformations guestInformations = new PartyGuestInformations(); guestInformations.Deserialize(reader); this.guests.Add(guestInformations); } this.restricted = reader.ReadBoolean(); this.partyName = reader.ReadUTF(); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); m_memberInformations = ProtocolTypeManager.GetInstance <PartyMemberInformations>(reader.ReadUShort()); m_memberInformations.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { memberInformations = new PartyMemberInformations(); memberInformations.Deserialize(reader); }
public new void Deserialize(IDataReader reader) { base.Deserialize(reader); MemberInformations = new PartyMemberInformations(); MemberInformations.Deserialize(reader); }