Esempio n. 1
0
        public void Save()
        {
            foreach (DZx D in DZRs)
            {
                if (D.FileEntry.IsCompressed == true)
                {
                    continue;
                }

                foreach (DZx.FileChunk C in D.Chunks)
                {
                    foreach (IDZxChunkElement CE in C.Data)
                    {
                        if (CE.HasChanged == true)
                        {
                            CE.StoreChanges();
                        }
                    }
                }

                D.FileEntry.BaseRARC.Save();
            }

            foreach (DZx D in DZSs)
            {
                if (D.FileEntry.IsCompressed == true)
                {
                    continue;
                }

                foreach (DZx.FileChunk C in D.Chunks)
                {
                    foreach (IDZxChunkElement CE in C.Data)
                    {
                        if (CE.HasChanged == true)
                        {
                            CE.StoreChanges();
                        }
                    }
                }

                D.FileEntry.BaseRARC.Save();
            }

            foreach (DZB D in DZBs)
            {
                // unimplemented!
            }

            foreach (J3Dx J in J3Dxs)
            {
                // unimplemented!
            }
        }
Esempio n. 2
0
        public void Save()
        {
            foreach (DZx D in DZRs)
            {
                if (D.FileEntry.IsCompressed == true)
                {
                    continue;
                }

                foreach (DZx.FileChunk C in D.Chunks)
                {
                    foreach (IDZxChunkElement CE in C.Data)
                    {
                        if (CE.HasChanged == true || Translation != new Vector3(0, 0, 0))
                        {
                            CE.StoreChanges();
                        }
                    }
                }

                D.FileEntry.BaseRARC.Save();
            }

            foreach (DZx D in DZSs)
            {
                if (D.FileEntry.IsCompressed == true)
                {
                    continue;
                }

                foreach (DZx.FileChunk C in D.Chunks)
                {
                    foreach (IDZxChunkElement CE in C.Data)
                    {
                        if (CE.HasChanged == true)
                        {
                            CE.StoreChanges();
                        }
                    }
                }

                D.FileEntry.BaseRARC.Save();
            }

            foreach (DZB D in DZBs)
            {
                if (D.ParentFile.IsCompressed == true)
                {
                    continue;
                }

                foreach (DZB.Vertex V in D.Vertices)
                {
                    V.StoreChanges();
                }

                D.ParentFile.BaseRARC.Save();
            }

            foreach (J3Dx J in J3Dxs)
            {
                if (J.FileEntry.IsCompressed == true)
                {
                    continue;
                }
                J.FileEntry.BaseRARC.Save();
            }
        }