Ejemplo n.º 1
0
        public override void Serialize(IDataWriter writer)
        {
            base.Serialize(writer);
            writer.WriteShort(((short)(m_alternatives.Count)));
            int alternativesIndex;

            for (alternativesIndex = 0; (alternativesIndex < m_alternatives.Count); alternativesIndex = (alternativesIndex + 1))
            {
                GroupMonsterStaticInformations objectToSend = m_alternatives[alternativesIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteByte(m_nbWaves);
        }
Ejemplo n.º 2
0
        public override void Serialize(IDataWriter writer)
        {
            base.Serialize(writer);
            byte flag = new byte();

            BooleanByteWrapper.SetFlag(0, flag, m_keyRingBonus);
            BooleanByteWrapper.SetFlag(1, flag, m_hasHardcoreDrop);
            BooleanByteWrapper.SetFlag(2, flag, m_hasAVARewardToken);
            writer.WriteByte(flag);
            writer.WriteUShort(((ushort)(m_staticInfos.TypeID)));
            m_staticInfos.Serialize(writer);
            writer.WriteDouble(m_creationTime);
            writer.WriteInt(m_ageBonusRate);
            writer.WriteByte(m_lootShare);
            writer.WriteByte(m_alignmentSide);
        }