2024-08-02 06:21:30 +00:00
|
|
|
|
2024-05-05 07:49:41 +00:00
|
|
|
/* RJSensor.h */
|
|
|
|
|
2024-05-12 16:25:45 +00:00
|
|
|
#ifndef ROKOJORI__SENSOR_H
|
|
|
|
#define ROKOJORI__SENSOR_H
|
2024-05-05 07:49:41 +00:00
|
|
|
|
2024-08-02 06:21:30 +00:00
|
|
|
#include "./RJGodotHeaders.h"
|
2024-05-08 07:17:37 +00:00
|
|
|
#include "./RJNetworkNode.h"
|
2024-05-05 07:49:41 +00:00
|
|
|
|
|
|
|
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
|
2024-05-08 07:17:37 +00:00
|
|
|
class RJSensor : public RJNetworkNode
|
2024-05-05 07:49:41 +00:00
|
|
|
{
|
2024-08-02 06:21:30 +00:00
|
|
|
GDCLASS( RJSensor, RJNetworkNode );
|
2024-05-05 07:49:41 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-05 07:49:41 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
// getValue() : float
|
2024-05-05 07:49:41 +00:00
|
|
|
GDVIRTUAL0R( float, getValue );
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
// isActive() : bool
|
2024-05-05 07:49:41 +00:00
|
|
|
GDVIRTUAL0R( bool, isActive );
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
// wasActive() : bool
|
2024-05-05 07:49:41 +00:00
|
|
|
GDVIRTUAL0R( bool, wasActive );
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
// updateValue( float value ) : void
|
2024-05-05 07:49:41 +00:00
|
|
|
GDVIRTUAL1( updateValue, float );
|
|
|
|
|
2024-08-02 06:21:30 +00:00
|
|
|
// Constructor
|
2024-05-05 07:49:41 +00:00
|
|
|
RJSensor();
|
2024-08-02 06:21:30 +00:00
|
|
|
|
|
|
|
// Destructor
|
2024-05-05 07:49:41 +00:00
|
|
|
~RJSensor();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-08-02 06:21:30 +00:00
|
|
|
#endif // ROKOJORI__SENSOR_H
|