Properties Update
This commit is contained in:
		
							parent
							
								
									c19d8b71d8
								
							
						
					
					
						commit
						650c34164a
					
				|  | @ -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() | ||||
| { | ||||
|    | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -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
 | ||||
|  | @ -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() | ||||
| { | ||||
|    | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -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<Node> ); | ||||
|   GDVIRTUAL0R( Ref<Node>, get ); | ||||
|   /* signal onChange */ | ||||
| 
 | ||||
|   RJNodeProperty(); | ||||
|   | ||||
|   ~RJNodeProperty(); | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
| #endif // ROKOJORI__NODE_PROPERTY_H
 | ||||
|  | @ -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() | ||||
| { | ||||
|    | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -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<RJAction>, get_onChanged ); | ||||
|   GDVIRTUAL1( set_onChanged, Ref<RJAction> ); | ||||
| 
 | ||||
|   RJNumberProperty(); | ||||
|   | ||||
|   ~RJNumberProperty(); | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
| #endif // ROKOJORI__NUMBER_PROPERTY_H
 | ||||
|  | @ -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() | ||||
| { | ||||
|    | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -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
 | ||||
|  | @ -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<RJTimeLineManager>(); | ||||
|   ClassDB::register_class<RJVirtualCamera3D>(); | ||||
|   ClassDB::register_class<RJVirtualCamera3DManager>(); | ||||
|   ClassDB::register_class<RJBoolProperty>(); | ||||
|   ClassDB::register_class<RJNodeProperty>(); | ||||
|   ClassDB::register_class<RJNumberProperty>(); | ||||
|   ClassDB::register_class<RJStringProperty>(); | ||||
| } | ||||
| 
 | ||||
| void uninitialize_rokojori_action_library_module( ModuleInitializationLevel p_level )  | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Josef
						Josef