Beispiel #1
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            if (this.Direction != null)
            {
                this.MetaStructure.direction = mb.AddItemArrayPtr(MetaName.VECTOR3, this.Direction.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }

            MVECTOR3.AddEnumAndStructureInfo(mb);

            this.MetaStructure.falloff           = mb.AddFloatArrayPtr(this.Falloff.ToArray());
            this.MetaStructure.falloffExponent   = mb.AddFloatArrayPtr(this.FalloffExponent.ToArray());
            this.MetaStructure.timeAndStateFlags = mb.AddUintArrayPtr(this.TimeAndStateFlags.ToArray());
            this.MetaStructure.hash                   = mb.AddUintArrayPtr(this.Hash.ToArray());
            this.MetaStructure.coneInnerAngle         = mb.AddByteArrayPtr(this.ConeInnerAngle.ToArray());
            this.MetaStructure.coneOuterAngleOrCapExt = mb.AddByteArrayPtr(this.ConeOuterAngleOrCapExt.ToArray());
            this.MetaStructure.coronaIntensity        = mb.AddByteArrayPtr(this.CoronaIntensity.ToArray());

            MCLODLight.AddEnumAndStructureInfo(mb);

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

                this.Meta = mb.GetMeta();
            }
        }
Beispiel #2
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.x = this.X;
            this.MetaStructure.y = this.Y;
            this.MetaStructure.z = this.Z;

            MVECTOR3.AddEnumAndStructureInfo(mb);

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

                this.Meta = mb.GetMeta();
            }
        }
Beispiel #3
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            if (this.Position != null)
            {
                this.MetaStructure.position = mb.AddItemArrayPtr(MetaName.VECTOR3, this.Position.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MVECTOR3.AddEnumAndStructureInfo(mb);

            this.MetaStructure.RGBI            = mb.AddUintArrayPtr(this.RGBI.ToArray());
            this.MetaStructure.numStreetLights = this.NumStreetLights;
            this.MetaStructure.category        = this.Category;

            MCDistantLODLight.AddEnumAndStructureInfo(mb);

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

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