-
Notifications
You must be signed in to change notification settings - Fork 1
cop_observer_float
Class Name: COP_ObserverFloat
Inherits: Resource
cop_observer_float class stores and shares the reference to a float type. When the value has been changed then the changed value will also be emitted to its observers through the callables in the Singal. This class works as the Observer Pattern. The value can NOT be set during editor mode but it can ONLY be set during run time.
Type | Name | Default Value |
---|---|---|
float | _value |
Return Type | Name |
---|---|
float | get_value() |
float | get_value_emit() |
void | set_value( float value ) |
void | set_value_emit( float value ) |
void | disconnect_all() |
value_changed ( float value )
Emitted when the _value has been changed through the method set_value_emit().
float _value
The stored value that will be sent to obeservers when ever this value changes through the method set_value_emit(). This value is also emitted to observers when the method get_value_emit() is called. You can also get/set the value without the need for emitting by calling the methods get_value() or set_value().
float get_value ()
This method returns the _value without emitting to the observers.
float get_value_emit ()
This method returns the _value and emits it to the observers.
void set_value ( float value )
This method sets the _value without emitting to the obserers.
void set_value_emit ( float value )
This method sets the _value and emits it to the observers.
This method removes/disconnects all the connected callable objects from the Signal value_changed.
- Tutorial Bar
- Tutorial Debug
- Tutorial Instantiate Object
- Tutorial Pool
- Tutorial Timer
- Tutorial Update Manager
- Tutorial Variable Creator
- Bars
- Debugs
- Maths
- Pools
- Resources
- Fixed Vars
- Managers
- Observers
- Vars
- Script Templates
- Timers
- Updates