Beispiel #1
0
        public virtual void Build(BIGFile big, Progress progress)
        {
            myBIG = big;

            int numEntries = 0;

            for (int i = 0; i < myBIG.BankCount; ++i)
            {
                numEntries += myBIG.get_Banks(i).EntryCount;
            }

            progress.Begin(numEntries);

            for (int i = 0; i < myBIG.BankCount; ++i)
            {
                TreeNode bankNode = new TreeNode();

                bankNode.Text               = myBIG.get_Banks(i).Name;
                bankNode.Tag                = myBIG.get_Banks(i);
                bankNode.ImageIndex         = 2;
                bankNode.SelectedImageIndex = 2;

                AddNode(null, bankNode);

                for (int j = 0; j < big.get_Banks(i).EntryCount; ++j)
                {
                    AssetEntry entry = myBIG.get_Banks(i).get_Entries(j);

                    AddToTree(
                        bankNode,
                        entry.DevSymbolName,
                        entry);

                    progress.Update();
                }
            }

            progress.End();

            if (myBIG == FileDatabase.Instance.Textures)
            {
                addEntryToolStripMenuItem.Text = "Add Texture";
            }
        }
        private void FindModified(BIGFile big, Progress progress)
        {
            progress.Begin(big.BankCount);

            for (int i = 0; i < big.BankCount; ++i)
            {
                FindModified(big.get_Banks(i), progress);
            }

            progress.End();
        }