30 lines
359 B
C++
30 lines
359 B
C++
|
|
/* RJSensor.cpp */
|
|
|
|
#include "RJSensor.h"
|
|
|
|
// Registers fields, signals and methods for Godot
|
|
void RJSensor::_bind_methods()
|
|
{
|
|
GDVIRTUAL_BIND( getValue );
|
|
GDVIRTUAL_BIND( isActive );
|
|
GDVIRTUAL_BIND( wasActive );
|
|
GDVIRTUAL_BIND( updateValue, "value" );
|
|
}
|
|
|
|
// Constructor
|
|
RJSensor::RJSensor()
|
|
{
|
|
|
|
}
|
|
|
|
// Destructor
|
|
RJSensor::~RJSensor()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|