Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
LED Class Reference
Inheritance diagram for LED:

Public Types

enum  colorIndices {
  colorIndices.off, colorIndices.red, colorIndices.yellow, colorIndices.green,
  colorIndices.blue, colorIndices.purple
}
 

Public Member Functions

void blink (float interval)
 Makes the LED blink. (uses last defined color or defaults to red) More...
 
void setColor (colorIndices color)
 Sets the LED's color. (will only take effect when the LED is on) More...
 
void setOff ()
 Sets the LED to off. More...
 
void setOn ()
 Sets the LED to on (will use the color defined by the last setColor call, or will default to red if color wasn't set) More...
 
void setOn (bool on)
 turns the LED on or off depending on the parameter boolean value More...
 

Public Attributes

colorIndices currentColor
 
Texture2D[] ledColors
 

Properties

colorIndices color [get]
 
bool isBlinking [get]
 
bool isOn [get]
 Indicates whether or not the LED is on (read-only) More...
 

Member Enumeration Documentation

Enumerator
off 
red 
yellow 
green 
blue 
purple 

Member Function Documentation

void LED.blink ( float  interval)
inline

Makes the LED blink. (uses last defined color or defaults to red)

Parameters
intervalblink interval in seconds
void LED.setColor ( colorIndices  color)
inline

Sets the LED's color. (will only take effect when the LED is on)

Parameters
colorIndex for the new color. Use the LED.colorIndices enum to get color indices
void LED.setOff ( )
inline

Sets the LED to off.

void LED.setOn ( )
inline

Sets the LED to on (will use the color defined by the last setColor call, or will default to red if color wasn't set)

void LED.setOn ( bool  on)
inline

turns the LED on or off depending on the parameter boolean value

Parameters
onset to on?

Member Data Documentation

colorIndices LED.currentColor
Texture2D [] LED.ledColors

Property Documentation

colorIndices LED.color
get
bool LED.isBlinking
get
bool LED.isOn
get

Indicates whether or not the LED is on (read-only)


The documentation for this class was generated from the following file: