Пример #1
0
        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);
            }
        }
Пример #2
0
 //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();
 }