예제 #1
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;
        }
예제 #2
0
 public LightingBlockDefinition(MyObjectBuilder_LightingBlockDefinition definition)
     : base(definition)
 {
 }
		public LightingBlockDefinition(MyObjectBuilder_LightingBlockDefinition definition)
			: base(definition)
		{ }