Class Signal<T>
Represents a signal that can be queried for value. It will automatically go back to default state every time the value is queried.
Assembly: LobsterFramework.dll
Syntax
public class Signal<T> where T : struct
Type Parameters
Constructors
|
Improve this Doc
View Source
Signal()
Declaration
|
Improve this Doc
View Source
Signal(T)
Declaration
public Signal(T defaultValue)
Parameters
Type |
Name |
Description |
T |
defaultValue |
|
Methods
|
Improve this Doc
View Source
Put(T)
Declaration
public void Put(T newValue)
Parameters
Type |
Name |
Description |
T |
newValue |
|
|
Improve this Doc
View Source
Reset()
Declaration
Operators
|
Improve this Doc
View Source
implicit operator T(Signal<T>)
Declaration
public static implicit operator T(Signal<T> signal)
Parameters
Type |
Name |
Description |
Signal<T> |
signal |
|
Returns