public static List <MBINField> GetMBINFields(Stream file) { NMSTemplate template = null; using (libMBIN.MBINFile mbin = new libMBIN.MBINFile(file)) { mbin.Load(); // load the header information from the file template = mbin.GetData(); // populate the data struct. } if (template != null) { return(IterateFields(template, template.GetType())); } else { Helpers.BasicDialogBox("MBIN Loading Error...", "Unable to load the MBIN!"); return(null); } }
//Generic Procedures - File Loading public static void loadAnimationFile(string path, MVCore.GMDL.Model scn) { libMBIN.MBINFile mbinf = new libMBIN.MBINFile(path); mbinf.Load(); //scn.animMeta = (libMBIN.NMS.Toolkit.TkAnimMetadata) mbinf.GetData(); }