In c++ I have class
class URHO3D_API CameraControllerFlowNode : public FlowNode
{
URHO3D_OBJECT(CameraControllerFlowNode, FlowNode);
public:
CameraControllerFlowNode(Context* context);
void Update(float timeStep);
enum InputPort
{
IN_CAMERA_NODE = 0,
IN_MOUSE_SENSITIVITY = 1
};
...
};
What better way to export it enum to angelScript? Do I have to use constants instead?
class URHO3D_API CameraControllerFlowNode : public FlowNode
{
URHO3D_OBJECT(CameraControllerFlowNode, FlowNode);
public:
CameraControllerFlowNode(Context* context);
void Update(float timeStep);
static const int IN_CAMERA_NODE = 0;
static const int IN_MOUSE_SENSITIVITY = 1;
...
};