public override void Build(MetaBuilder mb, bool isRoot = false) { this.MetaStructure.Name = this.Name; this.MetaStructure.lodDist = this.LodDist; this.MetaStructure.flags = this.Flags; this.MetaStructure.specialAttribute = this.SpecialAttribute; this.MetaStructure.bbMin = this.BbMin; this.MetaStructure.bbMax = this.BbMax; this.MetaStructure.bsCentre = this.BsCentre; this.MetaStructure.bsRadius = this.BsRadius; this.MetaStructure.StartModel = this.StartModel; this.MetaStructure.EndModel = this.EndModel; this.MetaStructure.StartImapFile = this.StartImapFile; this.MetaStructure.EndImapFile = this.EndImapFile; this.MetaStructure.PtFxAssetName = this.PtFxAssetName; if (this.Animations != null) { this.MetaStructure.Animations = mb.AddItemArrayPtr((MetaName)(1980345114), this.Animations.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray()); } MUnk_1980345114.AddEnumAndStructureInfo(mb); MCCompositeEntityType.AddEnumAndStructureInfo(mb); if (isRoot) { mb.AddItem(this.MetaName, this.MetaStructure); this.Meta = mb.GetMeta(); } }
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(); }
public override void Parse(MetaFile meta, Unk_3430328684 Unk_3430328684) { this.Meta = meta; this.MetaStructure = Unk_3430328684; this.FxType = Unk_3430328684.fxType; this.FxOffsetPos = Unk_3430328684.fxOffsetPos; this.FxOffsetRot = Unk_3430328684.fxOffsetRot; this.BoneTag = Unk_3430328684.boneTag; this.StartPhase = Unk_3430328684.startPhase; this.EndPhase = Unk_3430328684.endPhase; this.PtFxIsTriggered = Unk_3430328684.ptFxIsTriggered; this.PtFxTag = Unk_3430328684.ptFxTag; this.PtFxScale = Unk_3430328684.ptFxScale; this.PtFxProbability = Unk_3430328684.ptFxProbability; this.PtFxHasTint = Unk_3430328684.ptFxHasTint; this.PtFxTintR = Unk_3430328684.ptFxTintR; this.PtFxTintG = Unk_3430328684.ptFxTintG; this.PtFxTintB = Unk_3430328684.ptFxTintB; this.PtFxSize = Unk_3430328684.ptFxSize; }
public override void Parse(MetaFile meta, CCompositeEntityType CCompositeEntityType) { this.Meta = meta; this.MetaStructure = CCompositeEntityType; this.Name = CCompositeEntityType.Name; this.LodDist = CCompositeEntityType.lodDist; this.Flags = CCompositeEntityType.flags; this.SpecialAttribute = CCompositeEntityType.specialAttribute; this.BbMin = CCompositeEntityType.bbMin; this.BbMax = CCompositeEntityType.bbMax; this.BsCentre = CCompositeEntityType.bsCentre; this.BsRadius = CCompositeEntityType.bsRadius; this.StartModel = CCompositeEntityType.StartModel; this.EndModel = CCompositeEntityType.EndModel; this.StartImapFile = CCompositeEntityType.StartImapFile; this.EndImapFile = CCompositeEntityType.EndImapFile; this.PtFxAssetName = CCompositeEntityType.PtFxAssetName; var Animations = MetaUtils.ConvertDataArray <RageLib.Resources.GTA5.PC.Meta.Unk_1980345114>(meta, CCompositeEntityType.Animations); this.Animations = Animations?.Select(e => { var msw = new MUnk_1980345114(); msw.Parse(meta, e); return(msw); }).ToList(); }
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(); } }