コード例 #1
0
ファイル: CMP.cs プロジェクト: goaaats/xivModdingFramework-1
        private static async Task SaveCharaMakeParameterSet(CharaMakeParameterSet cmp, IndexFile index = null, ModList modlist = null)
        {
            var _dat      = new Dat(XivCache.GameInfo.GameDirectory);
            var dummyItem = new XivGenericItemModel();

            dummyItem.Name = "human.cmp";
            dummyItem.SecondaryCategory = Constants.InternalModSourceName;

            await _dat.ImportType2Data(cmp.GetBytes(), HumanCmpPath, Constants.InternalModSourceName, dummyItem, index, modlist);
        }
コード例 #2
0
ファイル: CMP.cs プロジェクト: goaaats/xivModdingFramework-1
        private static async Task <CharaMakeParameterSet> GetCharaMakeParameterSet(bool forceOriginal = false, IndexFile index = null, ModList modlist = null)
        {
            var _dat = new Dat(XivCache.GameInfo.GameDirectory);

            var data = await _dat.GetType2Data(HumanCmpPath, forceOriginal, index, modlist);

            var cmp = new CharaMakeParameterSet(data);


            return(cmp);
        }