Exemple #1
0
 public NiFile(BinaryReader reader)
 {
     Header = new NiHeader(this, reader);
     ReadNiObjects(reader);
     Footer = new NiFooter(this, reader);
     FixRefs();
 }
Exemple #2
0
        private void LoadNiFile(BinaryReader reader)
        {
            Header = new NiHeader(this, reader);
            ReadNiObjects(reader);
            Footer = new NiFooter(this, reader);
            reader.Dispose();
            FixRefs();
            root = FindRoot();

            //todo: maybe move this out?
#if NAVGEN
            GenerateMeshs();
            _loaded = true;
#else
            GUI.ScheduleGLThread(() => {
                GenerateMeshs();
                _loaded = true;
            });
#endif
        }