示例#1
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.texId        = this.TexId;
            this.MetaStructure.distribution = this.Distribution;

            MUnk_1036962405.AddEnumAndStructureInfo(mb);

            if (isRoot)
            {
                mb.AddItem(this.MetaName, this.MetaStructure);

                this.Meta = mb.GetMeta();
            }
        }
示例#2
0
        public override void Parse(MetaFile meta, Unk_1535046754 Unk_1535046754)
        {
            this.Meta          = meta;
            this.MetaStructure = Unk_1535046754;

            this.PropMask       = Unk_1535046754.propMask;
            this.Unk_2806194106 = Unk_1535046754.Unk_2806194106;
            var aTexData = MetaUtils.ConvertDataArray <Unk_1036962405>(meta, Unk_1535046754.aTexData);

            this.ATexData = aTexData?.Select(e => { var msw = new MUnk_1036962405(); msw.Parse(meta, e); return(msw); }).ToList();

            this.ClothData = new MUnk_2236980467();
            this.ClothData.Parse(meta, Unk_1535046754.clothData);
        }
示例#3
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.propMask       = this.PropMask;
            this.MetaStructure.Unk_2806194106 = this.Unk_2806194106;
            if (this.ATexData != null)
            {
                this.MetaStructure.aTexData = mb.AddItemArrayPtr((MetaName)(1036962405), this.ATexData.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MUnk_1036962405.AddEnumAndStructureInfo(mb);

            this.ClothData.Build(mb);
            this.MetaStructure.clothData = this.ClothData.MetaStructure;
            MUnk_2236980467.AddEnumAndStructureInfo(mb);


            MUnk_1535046754.AddEnumAndStructureInfo(mb);

            if (isRoot)
            {
                mb.AddItem(this.MetaName, this.MetaStructure);

                this.Meta = mb.GetMeta();
            }
        }