Ejemplo n.º 1
0
        public static DynamicParamBND Load(string fileName, bool isBnd4, PARAMBND.DefaultParamDefType defType)
        {
            var result = new DynamicParamBND();

            result.LoadFromFile(fileName, isBnd4, defType);
            return(result);
        }
Ejemplo n.º 2
0
        public void LoadFromFile(string fileName, bool isBnd4, PARAMBND.DefaultParamDefType defType)
        {
            LastDefType = defType;

            IsBND4 = isBnd4;

            FilePath = fileName;

            Params.Clear();

            var parambnd = DataFile.LoadFromFile <PARAMBND>(fileName);

            parambnd.ApplyDefaultParamDefs(defType);

            foreach (var f in parambnd)
            {
                Params.Add(f.Param);
            }
        }