public BuildServiceManager(ISource source, ILightFactory lightFactory) { _lightFactory = lightFactory; _light = _lightFactory.CreateLight(); _buildStatusSource = source; UnPause(); }
public StandardDirectionalLightComponent( ILightFactory lightFactory) { try { _standardDirectionalLight = lightFactory.CreateStandardDirectionalLight( Vector3.One, Color.White); _standardDirectionalLightArray = new ILight[] {_standardDirectionalLight}; } catch (NotSupportedException) { _standardDirectionalLight = null; _standardDirectionalLightArray = new ILight[0]; } }
public StandardDirectionalLightComponent( ILightFactory lightFactory) { try { _standardDirectionalLight = lightFactory.CreateStandardDirectionalLight( Vector3.One, Color.White); _standardDirectionalLightArray = new ILight[] { _standardDirectionalLight }; } catch (NotSupportedException) { _standardDirectionalLight = null; _standardDirectionalLightArray = new ILight[0]; } }
public StandardPointLightComponent( INode node, ILightFactory lightFactory) { _node = node; try { _standardPointLight = lightFactory.CreateStandardPointLight( Vector3.Zero, Color.White, 1, 1); _standardPointLightArray = new ILight[] {_standardPointLight}; } catch (NotSupportedException) { _standardPointLight = null; _standardPointLightArray = new ILight[0]; } }
public StandardPointLightComponent( INode node, ILightFactory lightFactory) { _node = node; try { _standardPointLight = lightFactory.CreateStandardPointLight( Vector3.Zero, Color.White, 1, 1); _standardPointLightArray = new ILight[] { _standardPointLight }; } catch (NotSupportedException) { _standardPointLight = null; _standardPointLightArray = new ILight[0]; } }
public YellowLight(ILightFactory lightFactory) { this.color = "yellow"; this.durationInSeconds = 5; this.lightFactory = lightFactory; }
public RedLight(ILightFactory lightFactory) { this.color = "red"; this.durationInSeconds = 20; this.lightFactory = lightFactory; }
public GreenLight(ILightFactory lightFactory) { this.color = "green"; this.durationInSeconds = 20; this.lightFactory = lightFactory; }