Exemplo n.º 1
0
        public void Parse()
        {
            m_PackageHash = bReader.ReadUInt32();

            m_ActionChartsCount = bReader.ReadInt64();

            for (int i = 0; i < m_ActionChartsCount; i++)
            {
                ActionChart nActionChart = new ActionChart(bReader, m_StringTable);
                nActionChart.Parse();

                string text = nActionChart.m_TextValues.First();

                int hash = (int)CryptogramBDCRC.process(text, (uint)text.Length, 1);    //Crypto might be outdated

                if (!m_ActionCharts.ContainsKey(hash))
                {
                    m_ActionCharts.Add(hash, nActionChart);
                }
            }
        }
        public void Parse()
        {
            m_ChartHash = bReader.ReadInt32();

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                m_BranchIdx.Add(bReader.ReadInt32());
            }

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                m_FrameLinks.Add(bReader.ReadInt32());
            }

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                bReader.ReadInt16();
            }

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                bReader.ReadInt16();
                bReader.ReadInt16();
            }

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                bReader.ReadInt16();
                bReader.ReadInt16();
            }

            m_Count = bReader.ReadInt64();

            for (int i = 0; i < m_Count; i++)
            {
                bReader.ReadInt32();
                bReader.ReadInt16();
                bReader.ReadInt16();
                bReader.ReadInt32();
                bReader.ReadInt32();
                bReader.ReadInt16();
                bReader.ReadInt16();
                bReader.ReadInt16();
            }

            m_Value0 = bReader.ReadInt32();
            m_Value1 = bReader.ReadInt32();

            m_Data0 = bReader.ReadFixedArray();

            bReader.ReadInt16();

            m_Data1 = bReader.ReadFixedArray();

            if (m_IsPcActionScript)
            {
                m_ActionChart = new ActionChart(bReader, m_StringTable);

                m_ActionChart.Parse();
            }
        }