|
void | FindLightComponents (Part part, bool disableColorPicker) |
| Find the components needed for the light to function correctly. More...
|
|
void | FixedUpdateLightsStatus (bool isOn, float time, float fdt, float resourceFraction, float targetLight, float currentLight, float lightBrightenSpeed, float lightDimSpeed, bool castLight, Color lightColor) |
| Set the lights on and off in the FixedUpdate function of the part that contains this light. More...
|
|
| LightStruct () |
|
| LightStruct (string lightName, float lightR, float lightG, float lightB, string flareRendererName) |
|
void | Load (ConfigNode node) |
|
void | UpdateLightStatusOnEditor (bool isOn, Color lightColor) |
| Set the lights on and off outside of the FixedUpdate function of the part that contains this light. More...
|
|
LightStruct.LightStruct |
( |
| ) |
|
|
inline |
LightStruct.LightStruct |
( |
string |
lightName, |
|
|
float |
lightR, |
|
|
float |
lightG, |
|
|
float |
lightB, |
|
|
string |
flareRendererName |
|
) |
| |
|
inline |
void LightStruct.FindLightComponents |
( |
Part |
part, |
|
|
bool |
disableColorPicker |
|
) |
| |
|
inline |
Find the components needed for the light to function correctly.
- Parameters
-
part | The part that contains this light |
void LightStruct.FixedUpdateLightsStatus |
( |
bool |
isOn, |
|
|
float |
time, |
|
|
float |
fdt, |
|
|
float |
resourceFraction, |
|
|
float |
targetLight, |
|
|
float |
currentLight, |
|
|
float |
lightBrightenSpeed, |
|
|
float |
lightDimSpeed, |
|
|
bool |
castLight, |
|
|
Color |
lightColor |
|
) |
| |
|
inline |
Set the lights on and off in the FixedUpdate function of the part that contains this light.
- Parameters
-
isOn | The state of the light, true = on, false = off |
time | The current time |
fdt | The fixed time |
resourceFraction | The resources left |
targetLight | The target intensity of the light |
currentLight | The current intensity of the light |
lightBrightenSpeed | The speed the light increases intensity before reaching the target intensity |
lightDimSpeed | The speed the light increases intensity when we reach the target intensity |
castLight | Are we casting light?, true = on, false = off |
void LightStruct.UpdateLightStatusOnEditor |
( |
bool |
isOn, |
|
|
Color |
lightColor |
|
) |
| |
|
inline |
Set the lights on and off outside of the FixedUpdate function of the part that contains this light.
- Parameters
-
isOn | The state of the light, true = on, false = off |
string LightStruct.flareRendererName = "Flare" |
This is the Name of the flare transform. If not specified, it means the light has no flare.
This is the value Blue of the light
This is the value Green of the light
string LightStruct.lightName |
This is the Name of the light
This is the value Red of the light
Transform LightStruct.lightTransform |
This is the transform of the light
The documentation for this class was generated from the following file: