public NiFile(BinaryReader reader) { Header = new NiHeader(this, reader); ReadNiObjects(reader); Footer = new NiFooter(this, reader); FixRefs(); }
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 }