Esempio n. 1
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.BatchAABB.Build(mb);
            this.MetaStructure.BatchAABB = this.BatchAABB.MetaStructure;
            Mrage__spdAABB.AddEnumAndStructureInfo(mb);

            this.MetaStructure.ScaleRange       = this.ScaleRange;
            this.MetaStructure.archetypeName    = this.ArchetypeName;
            this.MetaStructure.lodDist          = this.LodDist;
            this.MetaStructure.LodFadeStartDist = this.LodFadeStartDist;
            this.MetaStructure.LodInstFadeRange = this.LodInstFadeRange;
            this.MetaStructure.OrientToTerrain  = this.OrientToTerrain;
            if (this.InstanceList != null)
            {
                this.MetaStructure.InstanceList = mb.AddItemArrayPtr(MetaName.rage__fwGrassInstanceListDef__InstanceData, this.InstanceList.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            Mrage__fwGrassInstanceListDef__InstanceData.AddEnumAndStructureInfo(mb);


            Mrage__fwGrassInstanceListDef.AddEnumAndStructureInfo(mb);

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

                this.Meta = mb.GetMeta();
            }
        }
Esempio n. 2
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.min = this.Min;
            this.MetaStructure.max = this.Max;

            Mrage__spdAABB.AddEnumAndStructureInfo(mb);

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

                this.Meta = mb.GetMeta();
            }
        }
Esempio n. 3
0
        public override void Parse(MetaFile meta, rage__fwGrassInstanceListDef rage__fwGrassInstanceListDef)
        {
            this.Meta          = meta;
            this.MetaStructure = rage__fwGrassInstanceListDef;

            this.BatchAABB = new Mrage__spdAABB();
            this.BatchAABB.Parse(meta, rage__fwGrassInstanceListDef.BatchAABB);
            this.ScaleRange       = rage__fwGrassInstanceListDef.ScaleRange;
            this.ArchetypeName    = rage__fwGrassInstanceListDef.archetypeName;
            this.LodDist          = rage__fwGrassInstanceListDef.lodDist;
            this.LodFadeStartDist = rage__fwGrassInstanceListDef.LodFadeStartDist;
            this.LodInstFadeRange = rage__fwGrassInstanceListDef.LodInstFadeRange;
            this.OrientToTerrain  = rage__fwGrassInstanceListDef.OrientToTerrain;
            var InstanceList = MetaUtils.ConvertDataArray <rage__fwGrassInstanceListDef__InstanceData>(meta, rage__fwGrassInstanceListDef.InstanceList);

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