diff --git a/RJBoolProperty.cpp b/RJBoolProperty.cpp new file mode 100644 index 0000000..f6c318c --- /dev/null +++ b/RJBoolProperty.cpp @@ -0,0 +1,25 @@ + +/* RJBoolProperty.cpp */ + +#include "RJBoolProperty.h" + + +void RJBoolProperty::_bind_methods() +{ + GDVIRTUAL_BIND( set, "value" ); + GDVIRTUAL_BIND( get ); + ADD_SIGNAL (MethodInfo( "onChange" ) ); +} + +RJBoolProperty::RJBoolProperty() +{ + +} + +RJBoolProperty::~RJBoolProperty() +{ + +} + + + diff --git a/RJBoolProperty.h b/RJBoolProperty.h new file mode 100644 index 0000000..ccbfc6d --- /dev/null +++ b/RJBoolProperty.h @@ -0,0 +1,33 @@ + +/* RJBoolProperty.h */ + +#ifndef ROKOJORI__BOOL_PROPERTY_H +#define ROKOJORI__BOOL_PROPERTY_H + + +#include "./RJNetworkNode.h" + + +class RJBoolProperty : public RJNetworkNode +{ + GDCLASS(RJBoolProperty, RJNetworkNode); + +protected: + static void _bind_methods(); + + + + +public: + + GDVIRTUAL1( set, bool ); + GDVIRTUAL0R( bool, get ); + /* signal onChange */ + + RJBoolProperty(); + + ~RJBoolProperty(); +}; + + +#endif // ROKOJORI__BOOL_PROPERTY_H diff --git a/RJNodeProperty.cpp b/RJNodeProperty.cpp new file mode 100644 index 0000000..6e1eb4a --- /dev/null +++ b/RJNodeProperty.cpp @@ -0,0 +1,25 @@ + +/* RJNodeProperty.cpp */ + +#include "RJNodeProperty.h" + + +void RJNodeProperty::_bind_methods() +{ + GDVIRTUAL_BIND( set, "value" ); + GDVIRTUAL_BIND( get ); + ADD_SIGNAL (MethodInfo( "onChange" ) ); +} + +RJNodeProperty::RJNodeProperty() +{ + +} + +RJNodeProperty::~RJNodeProperty() +{ + +} + + + diff --git a/RJNodeProperty.h b/RJNodeProperty.h new file mode 100644 index 0000000..7bdb98b --- /dev/null +++ b/RJNodeProperty.h @@ -0,0 +1,33 @@ + +/* RJNodeProperty.h */ + +#ifndef ROKOJORI__NODE_PROPERTY_H +#define ROKOJORI__NODE_PROPERTY_H + + +#include "./RJNetworkNode.h" + + +class RJNodeProperty : public RJNetworkNode +{ + GDCLASS(RJNodeProperty, RJNetworkNode); + +protected: + static void _bind_methods(); + + + + +public: + + GDVIRTUAL1( set, Ref ); + GDVIRTUAL0R( Ref, get ); + /* signal onChange */ + + RJNodeProperty(); + + ~RJNodeProperty(); +}; + + +#endif // ROKOJORI__NODE_PROPERTY_H diff --git a/RJNumberProperty.cpp b/RJNumberProperty.cpp new file mode 100644 index 0000000..03e12c9 --- /dev/null +++ b/RJNumberProperty.cpp @@ -0,0 +1,27 @@ + +/* RJNumberProperty.cpp */ + +#include "RJNumberProperty.h" + + +void RJNumberProperty::_bind_methods() +{ + GDVIRTUAL_BIND( set, "value" ); + GDVIRTUAL_BIND( get ); + ADD_SIGNAL (MethodInfo( "changed" ) ); + GDVIRTUAL_BIND( get_onChanged ); + GDVIRTUAL_BIND( set_onChanged, "action" ); +} + +RJNumberProperty::RJNumberProperty() +{ + +} + +RJNumberProperty::~RJNumberProperty() +{ + +} + + + diff --git a/RJNumberProperty.h b/RJNumberProperty.h new file mode 100644 index 0000000..2b71946 --- /dev/null +++ b/RJNumberProperty.h @@ -0,0 +1,35 @@ + +/* RJNumberProperty.h */ + +#ifndef ROKOJORI__NUMBER_PROPERTY_H +#define ROKOJORI__NUMBER_PROPERTY_H + +#include "./RJAction.h" +#include "./RJNetworkNode.h" + + +class RJNumberProperty : public RJNetworkNode +{ + GDCLASS(RJNumberProperty, RJNetworkNode); + +protected: + static void _bind_methods(); + + + + +public: + + GDVIRTUAL1( set, double ); + GDVIRTUAL0R( double, get ); + /* signal changed */ + GDVIRTUAL0R( Ref, get_onChanged ); + GDVIRTUAL1( set_onChanged, Ref ); + + RJNumberProperty(); + + ~RJNumberProperty(); +}; + + +#endif // ROKOJORI__NUMBER_PROPERTY_H diff --git a/RJStringProperty.cpp b/RJStringProperty.cpp new file mode 100644 index 0000000..46bd149 --- /dev/null +++ b/RJStringProperty.cpp @@ -0,0 +1,25 @@ + +/* RJStringProperty.cpp */ + +#include "RJStringProperty.h" + + +void RJStringProperty::_bind_methods() +{ + GDVIRTUAL_BIND( set, "value" ); + GDVIRTUAL_BIND( get ); + ADD_SIGNAL (MethodInfo( "onChange" ) ); +} + +RJStringProperty::RJStringProperty() +{ + +} + +RJStringProperty::~RJStringProperty() +{ + +} + + + diff --git a/RJStringProperty.h b/RJStringProperty.h new file mode 100644 index 0000000..409f4e5 --- /dev/null +++ b/RJStringProperty.h @@ -0,0 +1,33 @@ + +/* RJStringProperty.h */ + +#ifndef ROKOJORI__STRING_PROPERTY_H +#define ROKOJORI__STRING_PROPERTY_H + + +#include "./RJNetworkNode.h" + + +class RJStringProperty : public RJNetworkNode +{ + GDCLASS(RJStringProperty, RJNetworkNode); + +protected: + static void _bind_methods(); + + + + +public: + + GDVIRTUAL1( set, String ); + GDVIRTUAL0R( String, get ); + /* signal onChange */ + + RJStringProperty(); + + ~RJStringProperty(); +}; + + +#endif // ROKOJORI__STRING_PROPERTY_H diff --git a/register_types.cpp b/register_types.cpp index ed0e40c..2adb469 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -14,6 +14,10 @@ #include "./RJTimeLineManager.h" #include "./RJVirtualCamera3D.h" #include "./RJVirtualCamera3DManager.h" +#include "./RJBoolProperty.h" +#include "./RJNodeProperty.h" +#include "./RJNumberProperty.h" +#include "./RJStringProperty.h" void initialize_rokojori_action_library_module( ModuleInitializationLevel p_level ) { @@ -32,6 +36,10 @@ void initialize_rokojori_action_library_module( ModuleInitializationLevel p_leve ClassDB::register_class(); ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); } void uninitialize_rokojori_action_library_module( ModuleInitializationLevel p_level )