public void Deserialize(IDataReader reader)
 {
     DareFixedInfos = new DareInformations();
     DareFixedInfos.Deserialize(reader);
     DareVersatilesInfos = new DareVersatileInformations();
     DareVersatilesInfos.Deserialize(reader);
 }
예제 #2
0
 public DareSubscribedMessage(bool Success, bool Subscribe, double DareId, DareVersatileInformations DareVersatilesInfos)
 {
     this.Success             = Success;
     this.Subscribe           = Subscribe;
     this.DareId              = DareId;
     this.DareVersatilesInfos = DareVersatilesInfos;
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     this.dareFixedInfos = new DareInformations();
     this.dareFixedInfos.Deserialize(reader);
     this.dareVersatilesInfos = new DareVersatileInformations();
     this.dareVersatilesInfos.Deserialize(reader);
 }
예제 #4
0
 public DareSubscribedMessage(bool success, bool subscribe, double dareId, DareVersatileInformations dareVersatilesInfos)
 {
     this.success             = success;
     this.subscribe           = subscribe;
     this.dareId              = dareId;
     this.dareVersatilesInfos = dareVersatilesInfos;
 }
예제 #5
0
 public DareInformationsMessage(
     DareInformations dareFixedInfos,
     DareVersatileInformations dareVersatilesInfos)
 {
     this.dareFixedInfos      = dareFixedInfos;
     this.dareVersatilesInfos = dareVersatilesInfos;
 }
예제 #6
0
 public DareSubscribedMessage(bool success, bool subscribe, DareVersatileInformations dareVersatilesInfos, double dareId)
 {
     m_success             = success;
     m_subscribe           = subscribe;
     m_dareVersatilesInfos = dareVersatilesInfos;
     m_dareId = dareId;
 }
예제 #7
0
 public override void Deserialize(IDataReader reader)
 {
     m_dareFixedInfos = new DareInformations();
     m_dareFixedInfos.Deserialize(reader);
     m_dareVersatilesInfos = new DareVersatileInformations();
     m_dareVersatilesInfos.Deserialize(reader);
 }
 public void Deserialize(IDataReader reader)
 {
     Dares = new DareVersatileInformations[reader.ReadShort()];
     for (var i = 0; i < Dares.Length; i++)
     {
         (Dares[i] = new DareVersatileInformations()).Deserialize(reader);
     }
 }
        public override void Deserialize(IDataReader reader)
        {
            var flag = reader.ReadByte();

            Success             = BooleanByteWrapper.GetFlag(flag, 0);
            Subscribe           = BooleanByteWrapper.GetFlag(flag, 1);
            DareId              = reader.ReadDouble();
            DareVersatilesInfos = new DareVersatileInformations();
            DareVersatilesInfos.Deserialize(reader);
        }
예제 #10
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte box0 = reader.ReadByte();

            Success             = BooleanByteWrapper.GetFlag(box0, 1);
            Subscribe           = BooleanByteWrapper.GetFlag(box0, 2);
            DareId              = reader.ReadDouble();
            DareVersatilesInfos = new DareVersatileInformations();
            DareVersatilesInfos.Deserialize(reader);
        }
예제 #11
0
        public override void Deserialize(IDataReader reader)
        {
            byte num = reader.ReadByte();

            this.success             = BooleanByteWrapper.GetFlag(num, 0);
            this.subscribe           = BooleanByteWrapper.GetFlag(num, 1);
            this.dareId              = reader.ReadDouble();
            this.dareVersatilesInfos = new DareVersatileInformations();
            this.dareVersatilesInfos.Deserialize(reader);
        }
예제 #12
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte flag = reader.ReadByte();

            m_success             = BooleanByteWrapper.GetFlag(flag, 0);
            m_subscribe           = BooleanByteWrapper.GetFlag(flag, 1);
            m_dareVersatilesInfos = new DareVersatileInformations();
            m_dareVersatilesInfos.Deserialize(reader);
            m_dareId = reader.ReadDouble();
        }
예제 #13
0
        public override void Serialize(ICustomDataOutput writer)
        {
            writer.WriteShort(((short)(m_dares.Count)));
            int daresIndex;

            for (daresIndex = 0; (daresIndex < m_dares.Count); daresIndex = (daresIndex + 1))
            {
                DareVersatileInformations objectToSend = m_dares[daresIndex];
                objectToSend.Serialize(writer);
            }
        }
예제 #14
0
        public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                DareVersatileInformations versatileInformations = new DareVersatileInformations();
                versatileInformations.Deserialize(reader);
                this.dares.Add(versatileInformations);
            }
        }
        public void Deserialize(IDataReader reader)
        {
            UInt32 wrappedBoolean = 0;

            DareId              = reader.ReadDouble();
            wrappedBoolean      = (UInt32)reader.ReadByte();
            Success             = BooleanByteWrapper.GetFlag(wrappedBoolean, 0);
            Subscribe           = BooleanByteWrapper.GetFlag(wrappedBoolean, 1);
            DareVersatilesInfos = new DareVersatileInformations();
            DareVersatilesInfos.Deserialize(reader);
        }
예제 #16
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var countDares = reader.ReadShort();

            Dares = new List <DareVersatileInformations>();
            for (short i = 0; i < countDares; i++)
            {
                DareVersatileInformations type = new DareVersatileInformations();
                type.Deserialize(reader);
                Dares.Add(type);
            }
        }
예제 #17
0
        public override void Deserialize(IDataReader reader)
        {
            var DaresCount = reader.ReadShort();

            Dares = new List <DareVersatileInformations>();
            for (var i = 0; i < DaresCount; i++)
            {
                var objectToAdd = new DareVersatileInformations();
                objectToAdd.Deserialize(reader);
                Dares.Add(objectToAdd);
            }
        }
예제 #18
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int daresCount = reader.ReadUShort();
            int daresIndex;

            m_dares = new System.Collections.Generic.List <DareVersatileInformations>();
            for (daresIndex = 0; (daresIndex < daresCount); daresIndex = (daresIndex + 1))
            {
                DareVersatileInformations objectToAdd = new DareVersatileInformations();
                objectToAdd.Deserialize(reader);
                m_dares.Add(objectToAdd);
            }
        }
예제 #19
0
        public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadByte();

            this.success   = Burning.DofusProtocol.Network.BooleanByteWrapper.GetFlag((byte)num, (byte)0);
            this.subscribe = Burning.DofusProtocol.Network.BooleanByteWrapper.GetFlag((byte)num, (byte)1);
            this.dareId    = reader.ReadDouble();
            if (this.dareId < 0.0 || this.dareId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.dareId + ") on element of DareSubscribedMessage.dareId.");
            }
            this.dareVersatilesInfos = new DareVersatileInformations();
            this.dareVersatilesInfos.Deserialize(reader);
        }
예제 #20
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte flag1 = reader.ReadByte();

            this.success   = BooleanByteWrapper.GetFlag(flag1, 0);
            this.subscribe = BooleanByteWrapper.GetFlag(flag1, 1);
            this.dareId    = reader.ReadDouble();

            if (this.dareId < 0 || this.dareId > 9007199254740990)
            {
                throw new Exception("Forbidden value on dareId = " + this.dareId + ", it doesn't respect the following condition : dareId < 0 || dareId > 9007199254740990");
            }
            this.dareVersatilesInfos = new DareVersatileInformations();
            this.dareVersatilesInfos.Deserialize(reader);
        }
예제 #21
0
        public override void Serialize(IDataWriter writer)
        {
            writer.WriteShort(((short)(m_daresFixedInfos.Count)));
            int daresFixedInfosIndex;

            for (daresFixedInfosIndex = 0; (daresFixedInfosIndex < m_daresFixedInfos.Count); daresFixedInfosIndex = (daresFixedInfosIndex + 1))
            {
                DareInformations objectToSend = m_daresFixedInfos[daresFixedInfosIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(((short)(m_daresVersatilesInfos.Count)));
            int daresVersatilesInfosIndex;

            for (daresVersatilesInfosIndex = 0; (daresVersatilesInfosIndex < m_daresVersatilesInfos.Count); daresVersatilesInfosIndex = (daresVersatilesInfosIndex + 1))
            {
                DareVersatileInformations objectToSend = m_daresVersatilesInfos[daresVersatilesInfosIndex];
                objectToSend.Serialize(writer);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            var daresFixedInfosCount = reader.ReadUShort();

            DaresFixedInfos = new List <DareInformations>();
            for (var daresFixedInfosIndex = 0; daresFixedInfosIndex < daresFixedInfosCount; daresFixedInfosIndex++)
            {
                var objectToAdd = new DareInformations();
                objectToAdd.Deserialize(reader);
                DaresFixedInfos.Add(objectToAdd);
            }
            var daresVersatilesInfosCount = reader.ReadUShort();

            DaresVersatilesInfos = new List <DareVersatileInformations>();
            for (var daresVersatilesInfosIndex = 0; daresVersatilesInfosIndex < daresVersatilesInfosCount; daresVersatilesInfosIndex++)
            {
                var objectToAdd = new DareVersatileInformations();
                objectToAdd.Deserialize(reader);
                DaresVersatilesInfos.Add(objectToAdd);
            }
        }