rj-action-library-cpp/RJSensor.h

28 lines
431 B
C
Raw Normal View History

2024-05-05 07:49:41 +00:00
/* RJSensor.h */
#ifndef ROKOJORI_CORE__SENSOR_H
#define ROKOJORI_CORE__SENSOR_H
#include "scene/main/node.h"
class RJSensor : public Node
{
GDCLASS(RJSensor, Node);
protected:
static void _bind_methods();
public:
GDVIRTUAL0R( float, getValue );
GDVIRTUAL0R( bool, isActive );
GDVIRTUAL0R( bool, wasActive );
GDVIRTUAL1( updateValue, float );
RJSensor();
~RJSensor();
};
#endif // ROKOJORI_CORE__SENSOR_H