protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            var ob = (MyObjectBuilder_LightingBlockDefinition)builder;

            BlinkIntervalSeconds = ob.LightBlinkIntervalSeconds;
            BlinkLenght          = ob.LightBlinkLenght;
            BlinkOffset          = ob.LightBlinkOffset;
            LightRadius          = ob.LightRadius;
            LightFalloff         = ob.LightFalloff;
            LightIntensity       = ob.LightIntensity;
            RequiredPowerInput   = ob.RequiredPowerInput;
            LightGlare           = ob.LightGlare;
        }
Exemplo n.º 2
0
        protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);
            MyObjectBuilder_LightingBlockDefinition definition = (MyObjectBuilder_LightingBlockDefinition)builder;

            this.BlinkIntervalSeconds = (MyBounds)definition.LightBlinkIntervalSeconds;
            this.BlinkLenght          = (MyBounds)definition.LightBlinkLenght;
            this.BlinkOffset          = (MyBounds)definition.LightBlinkOffset;
            this.LightRadius          = (MyBounds)definition.LightRadius;
            this.LightReflectorRadius = (MyBounds)definition.LightReflectorRadius;
            this.LightFalloff         = (MyBounds)definition.LightFalloff;
            this.LightIntensity       = (MyBounds)definition.LightIntensity;
            this.LightOffset          = (MyBounds)definition.LightOffset;
            this.ResourceSinkGroup    = MyStringHash.GetOrCompute(definition.ResourceSinkGroup);
            this.RequiredPowerInput   = definition.RequiredPowerInput;
            this.Flare = definition.Flare;
        }
        protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            var ob = (MyObjectBuilder_LightingBlockDefinition)builder;

            BlinkIntervalSeconds = ob.LightBlinkIntervalSeconds;
            BlinkLenght          = ob.LightBlinkLenght;
            BlinkOffset          = ob.LightBlinkOffset;
            LightRadius          = ob.LightRadius;
            LightFalloff         = ob.LightFalloff;
            LightIntensity       = ob.LightIntensity;
            ResourceSinkGroup    = MyStringHash.GetOrCompute(ob.ResourceSinkGroup);
            RequiredPowerInput   = ob.RequiredPowerInput;
            LightGlare           = ob.LightGlare;
            HasPhysics           = ob.HasPhysics;
        }