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; }
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; }