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-05-08 07:17:37 +00:00
|
|
|
#include "./RJNetworkNode.h"
|
2024-05-05 07:49:41 +00:00
|
|
|
|
|
|
|
|
2024-05-08 07:17:37 +00:00
|
|
|
class RJSensor : public RJNetworkNode
|
2024-05-05 07:49:41 +00:00
|
|
|
{
|
2024-05-08 07:17:37 +00:00
|
|
|
GDCLASS(RJSensor, RJNetworkNode);
|
2024-05-05 07:49:41 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
GDVIRTUAL0R( float, getValue );
|
|
|
|
GDVIRTUAL0R( bool, isActive );
|
|
|
|
GDVIRTUAL0R( bool, wasActive );
|
|
|
|
GDVIRTUAL1( updateValue, float );
|
|
|
|
|
|
|
|
RJSensor();
|
|
|
|
~RJSensor();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-05-12 16:25:45 +00:00
|
|
|
#endif // ROKOJORI__SENSOR_H
|