Example #1
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.fxType          = this.FxType;
            this.MetaStructure.fxOffsetPos     = this.FxOffsetPos;
            this.MetaStructure.fxOffsetRot     = this.FxOffsetRot;
            this.MetaStructure.boneTag         = this.BoneTag;
            this.MetaStructure.startPhase      = this.StartPhase;
            this.MetaStructure.endPhase        = this.EndPhase;
            this.MetaStructure.ptFxIsTriggered = this.PtFxIsTriggered;
            this.MetaStructure.ptFxTag         = this.PtFxTag;
            this.MetaStructure.ptFxScale       = this.PtFxScale;
            this.MetaStructure.ptFxProbability = this.PtFxProbability;
            this.MetaStructure.ptFxHasTint     = this.PtFxHasTint;
            this.MetaStructure.ptFxTintR       = this.PtFxTintR;
            this.MetaStructure.ptFxTintG       = this.PtFxTintG;
            this.MetaStructure.ptFxTintB       = this.PtFxTintB;
            this.MetaStructure.ptFxSize        = this.PtFxSize;

            MUnk_3430328684.AddEnumAndStructureInfo(mb);

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

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

            this.AnimDict      = Unk_1980345114.AnimDict;
            this.AnimName      = Unk_1980345114.AnimName;
            this.AnimatedModel = Unk_1980345114.AnimatedModel;
            this.PunchInPhase  = Unk_1980345114.punchInPhase;
            this.PunchOutPhase = Unk_1980345114.punchOutPhase;
            var effectsData = MetaUtils.ConvertDataArray <Unk_3430328684>(meta, Unk_1980345114.effectsData);

            this.EffectsData = effectsData?.Select(e => { var msw = new MUnk_3430328684(); msw.Parse(meta, e); return(msw); }).ToList();
        }
Example #3
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.AnimDict      = this.AnimDict;
            this.MetaStructure.AnimName      = this.AnimName;
            this.MetaStructure.AnimatedModel = this.AnimatedModel;
            this.MetaStructure.punchInPhase  = this.PunchInPhase;
            this.MetaStructure.punchOutPhase = this.PunchOutPhase;
            if (this.EffectsData != null)
            {
                this.MetaStructure.effectsData = mb.AddItemArrayPtr((MetaName)(-864638612), this.EffectsData.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MUnk_3430328684.AddEnumAndStructureInfo(mb);


            MUnk_1980345114.AddEnumAndStructureInfo(mb);

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

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