public override void Parse(MetaFile meta, rage__fwGrassInstanceListDef__InstanceData rage__fwGrassInstanceListDef__InstanceData)
        {
            this.Meta          = meta;
            this.MetaStructure = rage__fwGrassInstanceListDef__InstanceData;

            this.Position = rage__fwGrassInstanceListDef__InstanceData.Position;
            this.NormalX  = rage__fwGrassInstanceListDef__InstanceData.NormalX;
            this.NormalY  = rage__fwGrassInstanceListDef__InstanceData.NormalY;
            this.Color    = rage__fwGrassInstanceListDef__InstanceData.Color;
            this.Scale    = rage__fwGrassInstanceListDef__InstanceData.Scale;
            this.Ao       = rage__fwGrassInstanceListDef__InstanceData.Ao;
            this.Pad      = rage__fwGrassInstanceListDef__InstanceData.Pad;
        }
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.Position = this.Position;
            this.MetaStructure.NormalX  = this.NormalX;
            this.MetaStructure.NormalY  = this.NormalY;
            this.MetaStructure.Color    = this.Color;
            this.MetaStructure.Scale    = this.Scale;
            this.MetaStructure.Ao       = this.Ao;
            this.MetaStructure.Pad      = this.Pad;

            Mrage__fwGrassInstanceListDef__InstanceData.AddEnumAndStructureInfo(mb);

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

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

            this.Posn                   = CLightAttrDef.posn;
            this.Colour                 = CLightAttrDef.colour;
            this.Flashiness             = CLightAttrDef.flashiness;
            this.Intensity              = CLightAttrDef.intensity;
            this.Flags                  = CLightAttrDef.flags;
            this.BoneTag                = CLightAttrDef.boneTag;
            this.LightType              = CLightAttrDef.lightType;
            this.GroupId                = CLightAttrDef.groupId;
            this.TimeFlags              = CLightAttrDef.timeFlags;
            this.Falloff                = CLightAttrDef.falloff;
            this.FalloffExponent        = CLightAttrDef.falloffExponent;
            this.CullingPlane           = CLightAttrDef.cullingPlane;
            this.ShadowBlur             = CLightAttrDef.shadowBlur;
            this.Padding1               = CLightAttrDef.padding1;
            this.Padding2               = CLightAttrDef.padding2;
            this.Padding3               = CLightAttrDef.padding3;
            this.VolIntensity           = CLightAttrDef.volIntensity;
            this.VolSizeScale           = CLightAttrDef.volSizeScale;
            this.VolOuterColour         = CLightAttrDef.volOuterColour;
            this.LightHash              = CLightAttrDef.lightHash;
            this.VolOuterIntensity      = CLightAttrDef.volOuterIntensity;
            this.CoronaSize             = CLightAttrDef.coronaSize;
            this.VolOuterExponent       = CLightAttrDef.volOuterExponent;
            this.LightFadeDistance      = CLightAttrDef.lightFadeDistance;
            this.ShadowFadeDistance     = CLightAttrDef.shadowFadeDistance;
            this.SpecularFadeDistance   = CLightAttrDef.specularFadeDistance;
            this.VolumetricFadeDistance = CLightAttrDef.volumetricFadeDistance;
            this.ShadowNearClip         = CLightAttrDef.shadowNearClip;
            this.CoronaIntensity        = CLightAttrDef.coronaIntensity;
            this.CoronaZBias            = CLightAttrDef.coronaZBias;
            this.Direction              = CLightAttrDef.direction;
            this.Tangent                = CLightAttrDef.tangent;
            this.ConeInnerAngle         = CLightAttrDef.coneInnerAngle;
            this.ConeOuterAngle         = CLightAttrDef.coneOuterAngle;
            this.Extents                = CLightAttrDef.extents;
            this.ProjectedTextureKey    = CLightAttrDef.projectedTextureKey;
        }