Initial Commit
This commit is contained in:
commit
88c864ac6a
|
@ -0,0 +1,2 @@
|
||||||
|
/__pycache__/
|
||||||
|
*.obj
|
|
@ -0,0 +1,32 @@
|
||||||
|
/* RJAction.cpp */
|
||||||
|
|
||||||
|
#include "RJAction.h"
|
||||||
|
|
||||||
|
|
||||||
|
void RJAction::_bind_methods()
|
||||||
|
{
|
||||||
|
GDVIRTUAL_BIND( _onTrigger );
|
||||||
|
|
||||||
|
ClassDB::bind_method( D_METHOD( "trigger" ) , &RJAction::trigger );
|
||||||
|
|
||||||
|
/*
|
||||||
|
ClassDB::bind_method(D_METHOD("add", "value"), &RokojoriAction::add);
|
||||||
|
ClassDB::bind_method(D_METHOD("reset"), &RokojoriAction::reset);
|
||||||
|
ClassDB::bind_method(D_METHOD("get_total"), &RokojoriAction::get_total);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
void RJAction::trigger()
|
||||||
|
{
|
||||||
|
GDVIRTUAL_CALL( _onTrigger );
|
||||||
|
}
|
||||||
|
|
||||||
|
RJAction::RJAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RJAction::~RJAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
/* RJAction.h */
|
||||||
|
|
||||||
|
#ifndef ROKOJORI_CORE__ACTION_H
|
||||||
|
#define ROKOJORI_CORE__ACTION_H
|
||||||
|
|
||||||
|
#include "./RJNetworkNode.h"
|
||||||
|
|
||||||
|
class RJAction : public RJNetworkNode
|
||||||
|
{
|
||||||
|
GDCLASS(RJAction, RJNetworkNode);
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void _bind_methods();
|
||||||
|
|
||||||
|
GDVIRTUAL0( _onTrigger )
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
void trigger();
|
||||||
|
|
||||||
|
RJAction();
|
||||||
|
~RJAction();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // ROKOJORI_CORE__ACTION_H
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* RJNetworkNode.cpp */
|
||||||
|
|
||||||
|
#include "RJNetworkNode.h"
|
||||||
|
|
||||||
|
void RJNetworkNode::_bind_methods()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RJNetworkNode::RJNetworkNode()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RJNetworkNode::~RJNetworkNode()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
/* RJNetworkNode.h */
|
||||||
|
|
||||||
|
#ifndef ROKOJORI_CORE__NETWORK_NODE_H
|
||||||
|
#define ROKOJORI_CORE__NETWORK_NODE_H
|
||||||
|
|
||||||
|
#include "scene/main/node.h"
|
||||||
|
|
||||||
|
|
||||||
|
class RJNetworkNode : public Node
|
||||||
|
{
|
||||||
|
GDCLASS(RJNetworkNode, Node);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void _bind_methods();
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
RJNetworkNode();
|
||||||
|
~RJNetworkNode();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // ROKOJORI_CORE__NETWORK_NODE_H
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* RJSelector.cpp */
|
||||||
|
|
||||||
|
#include "RJSelector.h"
|
||||||
|
|
||||||
|
|
||||||
|
void RJSelector::_bind_methods()
|
||||||
|
{
|
||||||
|
GDVIRTUAL_BIND( select );
|
||||||
|
}
|
||||||
|
|
||||||
|
RJSelector::RJSelector()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RJSelector::~RJSelector()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
/* RJSelector.h */
|
||||||
|
|
||||||
|
#ifndef ROKOJORI_CORE__SELECTOR_H
|
||||||
|
#define ROKOJORI_CORE__SELECTOR_H
|
||||||
|
|
||||||
|
#include "scene/main/node.h"
|
||||||
|
#include "core/io/resource.h"
|
||||||
|
|
||||||
|
class RJSelector : public Resource
|
||||||
|
{
|
||||||
|
GDCLASS(RJSelector, Resource);
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void _bind_methods();
|
||||||
|
|
||||||
|
GDVIRTUAL1R(bool, select, Ref<Node>)
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
RJSelector();
|
||||||
|
~RJSelector();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // ROKOJORI_CORE__SELECTOR_H
|
|
@ -0,0 +1,5 @@
|
||||||
|
Import('env')
|
||||||
|
Import("env_modules")
|
||||||
|
|
||||||
|
env_rokojori_action_library = env_modules.Clone()
|
||||||
|
env_rokojori_action_library.add_source_files(env.modules_sources, "*.cpp")
|
|
@ -0,0 +1,6 @@
|
||||||
|
def can_build(env, platform):
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
def configure(env):
|
||||||
|
pass
|
|
@ -0,0 +1,52 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
sodipodi:docname="RJAction.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview6"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.727068"
|
||||||
|
inkscape:cx="5.2105779"
|
||||||
|
inkscape:cy="14.546197"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1017"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg4" />
|
||||||
|
<path
|
||||||
|
sodipodi:type="star"
|
||||||
|
style="opacity:1;fill:none;stroke:#f7b200;stroke-width:2.56906;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
|
||||||
|
id="path1741"
|
||||||
|
inkscape:flatsided="false"
|
||||||
|
sodipodi:sides="5"
|
||||||
|
sodipodi:cx="-8.2018356"
|
||||||
|
sodipodi:cy="-2.1710742"
|
||||||
|
sodipodi:r1="7.9176526"
|
||||||
|
sodipodi:r2="4.7268386"
|
||||||
|
sodipodi:arg1="-1.5707963"
|
||||||
|
sodipodi:arg2="-0.9424778"
|
||||||
|
inkscape:rounded="0"
|
||||||
|
inkscape:randomized="0"
|
||||||
|
d="m -8.2018354,-10.088727 2.7783658,4.0935601 4.75176914,1.3774037 -3.03464454,3.90736248 0.1583886,4.94484222 -4.6538792,-1.6786771 -4.6538794,1.6786768 0.158389,-4.94484188 -3.034645,-3.90736292 4.751769,-1.3774033 z"
|
||||||
|
inkscape:transform-center-y="-0.5885941"
|
||||||
|
transform="matrix(0.77849339,0,0,0.77849339,14.385075,9.6742845)" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
|
@ -0,0 +1,43 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
sodipodi:docname="RJIcon.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview6"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.727068"
|
||||||
|
inkscape:cx="4.4868865"
|
||||||
|
inkscape:cy="9.7215875"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1017"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg4" />
|
||||||
|
<circle
|
||||||
|
cx="8"
|
||||||
|
cy="8"
|
||||||
|
r="5"
|
||||||
|
fill="none"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke="#e0e0e0"
|
||||||
|
id="circle2" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,43 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
sodipodi:docname="RJSelector.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview6"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.727068"
|
||||||
|
inkscape:cx="5.0175934"
|
||||||
|
inkscape:cy="12.712845"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1017"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg4" />
|
||||||
|
<path
|
||||||
|
id="rect401"
|
||||||
|
style="color:#000000;fill:#1de3ab;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none;paint-order:markers stroke fill;fill-opacity:1"
|
||||||
|
d="M 1.3300781 0.068359375 C 0.65598381 0.068359375 0.08203125 0.64035881 0.08203125 1.3144531 L 0.08203125 3.8261719 L 2.0820312 3.8261719 L 2.0820312 2.0683594 L 3.8261719 2.0683594 L 3.8261719 0.068359375 L 1.3300781 0.068359375 z M 12.173828 0.068359375 L 12.173828 2.0683594 L 13.939453 2.0683594 L 13.939453 3.8261719 L 15.939453 3.8261719 L 15.939453 1.3144531 C 15.939453 0.64035881 15.365501 0.068359375 14.691406 0.068359375 L 12.173828 0.068359375 z M 0.08203125 12.173828 L 0.08203125 14.642578 C 0.08203125 15.316672 0.65598381 15.890625 1.3300781 15.890625 L 3.8261719 15.890625 L 3.8261719 13.890625 L 2.0820312 13.890625 L 2.0820312 12.173828 L 0.08203125 12.173828 z M 13.939453 12.173828 L 13.939453 13.890625 L 12.173828 13.890625 L 12.173828 15.890625 L 14.691406 15.890625 C 15.365501 15.890625 15.939453 15.316672 15.939453 14.642578 L 15.939453 12.173828 L 13.939453 12.173828 z " />
|
||||||
|
<path
|
||||||
|
id="path1228"
|
||||||
|
style="opacity:1;fill:#1de3ab;fill-opacity:1;stroke:none;stroke-width:2.70201;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
|
||||||
|
d="M 7.2910948,2.485666 A 5.5307504,5.5307504 0 0 0 4.5684295,3.493565 l 0.99229,0.99229 A 4.1536974,4.1536974 0 0 1 7.2910948,3.8681823 Z M 8.7717252,2.552562 V 3.9640665 A 4.1536974,4.1536974 0 0 1 10.299183,4.6887727 L 11.278094,3.709862 A 5.5307504,5.5307504 0 0 0 8.7717252,2.552562 Z M 3.4891748,4.5059238 A 5.5307504,5.5307504 0 0 0 2.2984268,7.2620371 H 3.6943224 A 4.1536974,4.1536974 0 0 1 4.4680855,5.4848346 Z m 8.7945872,0.2898824 -0.994519,0.9945199 a 4.1536974,4.1536974 0 0 1 0.573076,1.471711 h 1.395895 A 5.5307504,5.5307504 0 0 0 12.283762,4.7958062 Z M 2.3006567,8.7426675 A 5.5307504,5.5307504 0 0 0 3.5047838,11.483172 L 4.4836946,10.504261 A 4.1536974,4.1536974 0 0 1 3.7032418,8.7426675 Z m 9.5594323,0 a 4.1536974,4.1536974 0 0 1 -0.575306,1.4672515 l 0.99006,0.99006 A 5.5307504,5.5307504 0 0 0 13.255984,8.7426675 Z M 10.279114,11.295864 A 4.1536974,4.1536974 0 0 1 8.7717252,12.01388 v 1.409275 a 5.5307504,5.5307504 0 0 0 2.4907588,-1.143921 z m -4.693866,0.198457 -0.9945199,0.99452 a 5.5307504,5.5307504 0 0 0 2.7003667,0.99229 V 12.098615 A 4.1536974,4.1536974 0 0 1 5.585248,11.494321 Z" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
|
@ -0,0 +1,32 @@
|
||||||
|
/* register_types.cpp */
|
||||||
|
|
||||||
|
#include "register_types.h"
|
||||||
|
|
||||||
|
#include "core/object/class_db.h"
|
||||||
|
|
||||||
|
#include "./RJNetworkNode.h"
|
||||||
|
#include "./RJAction.h"
|
||||||
|
#include "./RJSelector.h"
|
||||||
|
|
||||||
|
void initialize_rokojori_action_library_module( ModuleInitializationLevel p_level )
|
||||||
|
{
|
||||||
|
if ( p_level != MODULE_INITIALIZATION_LEVEL_SCENE )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ClassDB::register_class<RJNetworkNode>();
|
||||||
|
ClassDB::register_class<RJAction>();
|
||||||
|
ClassDB::register_class<RJSelector>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void uninitialize_rokojori_action_library_module( ModuleInitializationLevel p_level )
|
||||||
|
{
|
||||||
|
if ( p_level != MODULE_INITIALIZATION_LEVEL_SCENE )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
/* register_types.h */
|
||||||
|
|
||||||
|
#ifndef ROKOJORI_ACTION_LIBRARY_REGISTER_TYPES_H
|
||||||
|
#define ROKOJORI_ACTION_LIBRARY_REGISTER_TYPES_H
|
||||||
|
|
||||||
|
#include "modules/register_module_types.h"
|
||||||
|
|
||||||
|
|
||||||
|
void initialize_rokojori_action_library_module( ModuleInitializationLevel p_level );
|
||||||
|
void uninitialize_rokojori_action_library_module( ModuleInitializationLevel p_level );
|
||||||
|
|
||||||
|
|
||||||
|
#endif // ROKOJORI_ACTION_LIBRARY_REGISTER_TYPES_H
|
Loading…
Reference in New Issue