Пример #1
0
        // Builds the MDLX with the edited data
        public void buildBarFile()
        {
            foreach (Bar.Entry barEntry in BarFile)
            {
                switch (barEntry.Type)
                {
                case Bar.EntryType.Model:
                    ModelFile.Write(barEntry.Stream);
                    break;

                case Bar.EntryType.ModelTexture:
                    TextureFile.Write(barEntry.Stream);
                    break;

                case Bar.EntryType.ModelCollision:
                    barEntry.Stream = CollisionFile.toStream();
                    break;

                default:
                    break;
                }
            }
        }