add InverseKinematics type

This commit is contained in:
Andrew Meadows 2015-09-08 18:18:50 -07:00
parent e06461ea15
commit c3e16d33c1
2 changed files with 4 additions and 0 deletions

View file

@ -40,6 +40,7 @@ public:
BlendLinear,
Overlay,
StateMachine,
InverseKinematics,
NumTypes
};
using Pointer = std::shared_ptr<AnimNode>;

View file

@ -42,6 +42,7 @@ static const char* animNodeTypeToString(AnimNode::Type type) {
case AnimNode::Type::BlendLinear: return "blendLinear";
case AnimNode::Type::Overlay: return "overlay";
case AnimNode::Type::StateMachine: return "stateMachine";
case AnimNode::Type::InverseKinematics: return nullptr;
case AnimNode::Type::NumTypes: return nullptr;
};
return nullptr;
@ -53,6 +54,7 @@ static NodeLoaderFunc animNodeTypeToLoaderFunc(AnimNode::Type type) {
case AnimNode::Type::BlendLinear: return loadBlendLinearNode;
case AnimNode::Type::Overlay: return loadOverlayNode;
case AnimNode::Type::StateMachine: return loadStateMachineNode;
case AnimNode::Type::InverseKinematics: return nullptr;
case AnimNode::Type::NumTypes: return nullptr;
};
return nullptr;
@ -64,6 +66,7 @@ static NodeProcessFunc animNodeTypeToProcessFunc(AnimNode::Type type) {
case AnimNode::Type::BlendLinear: return processBlendLinearNode;
case AnimNode::Type::Overlay: return processOverlayNode;
case AnimNode::Type::StateMachine: return processStateMachineNode;
case AnimNode::Type::InverseKinematics: return nullptr;
case AnimNode::Type::NumTypes: return nullptr;
};
return nullptr;