Example #1
0
        public void ApplyDefaultParamDefs(DefaultParamDefType defType)
        {
            string defName = $"PARAMDEF.{defType}_paramdef.paramdefbnd";

            using (var resStream = EmbResMan.GetStream(defName))
            {
                using (var reader = new DSBinaryReader(defName, resStream))
                {
                    ApplyParamDefBND(reader.ReadAsDataFile <PARAMDEFBND>(defName));
                }
            }
        }
Example #2
0
        public void ApplyDefaultParamDefs()
        {
            string defName = $"PARAMDEF.{(IsRemaster ? "ds1r" : "ptde")}_paramdef.paramdefbnd";

            using (var resStream = EmbResMan.GetStream(defName))
            {
                using (var reader = new DSBinaryReader(defName, resStream))
                {
                    ApplyParamDefBND(reader.ReadAsDataFile <PARAMDEFBND>(defName));
                }
            }
        }