1
#ifndef __GRAPH_NODE_CONSTRUCT_H__
2
#define __GRAPH_NODE_CONSTRUCT_H__
4
#include "BaseAnimationNode.h"
9
class IGraphNodeConstruct
12
IGraphNodeConstruct() { }
13
virtual ~IGraphNodeConstruct() { }
14
virtual BaseAnimationNode* create(const std::string& _name) = 0;
17
template <typename Type>
18
class GraphNodeConstruct :
19
public IGraphNodeConstruct
22
GraphNodeConstruct() { }
23
virtual ~GraphNodeConstruct() { }
24
virtual BaseAnimationNode* create(const std::string& _name)
26
return new Type(_name);
32
#endif // __GRAPH_NODE_CONSTRUCT_H__
1
#ifndef __GRAPH_NODE_CONSTRUCT_H__
2
#define __GRAPH_NODE_CONSTRUCT_H__
4
#include "BaseAnimationNode.h"
9
class IGraphNodeConstruct
12
IGraphNodeConstruct() { }
13
virtual ~IGraphNodeConstruct() { }
14
virtual BaseAnimationNode* create(const std::string& _name) = 0;
17
template <typename Type>
18
class GraphNodeConstruct :
19
public IGraphNodeConstruct
22
GraphNodeConstruct() { }
23
virtual ~GraphNodeConstruct() { }
24
virtual BaseAnimationNode* create(const std::string& _name)
26
return new Type(_name);
32
#endif // __GRAPH_NODE_CONSTRUCT_H__