示例#1
0
        public List <uint> m_FashionValue = new List <uint>(); //时尚值

        public bool Load(XQFileStream xFs)
        {
            m_Place = xFs.ReadUInt();

            ushort valueCount   = xFs.ReadUShort();
            uint   fashionValue = 0;

            for (int i = 0; i < valueCount; ++i)
            {
                fashionValue = xFs.ReadUInt();
                m_FashionValue.Add(fashionValue);
            }

            return(true);
        }
示例#2
0
        public bool Load(ref XQFileStream file)
        {
            file.ReadUInt(ref m_nType);

            UInt16 nSize = 0;

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strName, nSize);

            file.ReadByte(ref m_nR);
            file.ReadByte(ref m_nG);
            file.ReadByte(ref m_nB);
            file.ReadByte(ref m_nA);

            return(true);
        }
示例#3
0
        public bool Load(ref XQFileStream file)
        {
            file.ReadUInt(ref m_nType);
            file.ReadByte(ref m_MoveState);

            UInt16 nSize = 0;

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strPlayerIdleAni, nSize);

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strPlayerMoveAni, nSize);

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strWingMoveAni, nSize);

            return(true);
        }
示例#4
0
        public bool Load(ref XQFileStream file)
        {
            file.ReadUInt(ref m_nType);

            UInt16 nSize = 0;

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strName, nSize);

            file.ReadByte(ref m_anType[0]);
            file.ReadByte(ref m_anType[1]);
            file.ReadByte(ref m_anType[2]);

            short lTemp = 0;

            file.ReadShort(ref lTemp);
            m_SexNeed = (Sex_Type)lTemp;

            file.ReadInt(ref m_nMatune);
            file.ReadShort(ref m_nUseTimes);
            file.ReadUShort(ref m_nNeedLevel);
            file.ReadBool(ref m_bUnique);
            file.ReadUShort(ref m_nMaxStackNumber);

            file.ReadUShort(ref m_nCoolDownTag);
            file.ReadInt(ref m_nCooldownTime);

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strIcon, nSize);
            if (m_strIcon.Length == 1)
            {
                m_strIcon = "";
            }

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strAtlas, nSize);
            if (m_strAtlas.Length == 1)
            {
                m_strAtlas = "";
            }

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strAnimation, nSize);
            if (m_strAnimation.Length == 1)
            {
                m_strAnimation = "";
            }

            m_nClothEffect = file.ReadUInt();

            m_ClothColor = file.ReadByte();
            file.ReadBool(ref m_bIsOldEffectCloth);

            file.ReadUShort(ref m_nVIP);
            file.ReadUInt(ref m_nIntimacy);

            file.ReadUShort(ref nSize);
            file.ReadString(ref m_strIntro, nSize);
            if (m_strIntro.Length == 1)
            {
                m_strIntro = "";
            }
            CheckReturn(ref m_strIntro);
            file.ReadBool(ref m_bIsNew);

            file.ReadUInt(ref m_nTriggerType);

            m_ClothAttr   = new ClothAttributeInfo((byte)file.ReadInt(), (uint)file.ReadInt());
            m_EffectLevel = file.ReadInt();
            m_Fashion     = file.ReadUInt();

            UInt16 nGeneCount = 0;

            file.ReadUShort(ref nGeneCount);
            for (UInt16 i = 0; i < nGeneCount; i++)
            {
                GeneInfo aGene = new GeneInfo();
                file.ReadUShort(ref aGene.m_nGeneID);
                file.ReadInt(ref aGene.m_nParam1);
                file.ReadInt(ref aGene.m_nParam2);
                file.ReadUShort(ref nSize);
                file.ReadString(ref aGene.m_strParam, nSize);

                m_aGeneMap.Add(aGene.m_nGeneID, aGene);
            }

            return(true);
        }
示例#5
0
 /// <summary>
 /// 从文件中读取一个uint类型的值
 /// </summary>
 /// <param name="xqFile">二进制文件</param>
 /// <returns>值</returns>
 public static uint ReadUInt(XQFileStream xqFile)
 {
     return(xqFile == null && xqFile.IsOpen() ? uint.MinValue : xqFile.ReadUInt());
 }