示例#1
0
        internal static AWARD_RATIO_SCALE Read(int version, BinaryReader br)
        {
            AWARD_RATIO_SCALE m_AwByRatio = new AWARD_RATIO_SCALE();

            m_AwByRatio.m_ulScales = br.ReadInt32();
            m_AwByRatio.m_Ratios   = new float[5];
            for (int num44 = 0; num44 < m_AwByRatio.m_Ratios.Length; num44++)
            {
                m_AwByRatio.m_Ratios[num44] = br.ReadSingle();
            }
            m_AwByRatio.m_Awards = new AWARD_DATA[m_AwByRatio.m_ulScales];
            for (int num45 = 0; num45 < m_AwByRatio.m_Awards.Length; num45++)
            {
                m_AwByRatio.m_Awards[num45] = AWARD_DATA.Read(version, br);
            }
            return(m_AwByRatio);
        }
示例#2
0
        internal static AWARD_ITEMS_SCALE Read(int version, BinaryReader br)
        {
            AWARD_ITEMS_SCALE m_AwByItems = new AWARD_ITEMS_SCALE();

            m_AwByItems.m_ulScales = br.ReadInt32();
            m_AwByItems.m_ulItemId = br.ReadInt32();
            m_AwByItems.m_Counts   = new int[5];
            for (int num44 = 0; num44 < m_AwByItems.m_Counts.Length; num44++)
            {
                m_AwByItems.m_Counts[num44] = br.ReadInt32();
            }
            m_AwByItems.m_Awards = new AWARD_DATA[m_AwByItems.m_ulScales];
            for (int num45 = 0; num45 < m_AwByItems.m_Awards.Length; num45++)
            {
                m_AwByItems.m_Awards[num45] = AWARD_DATA.Read(version, br);
            }
            return(m_AwByItems);
        }