Example #1
0
        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();
            }
        }
Example #2
0
        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();
        }
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();
            }
        }