NodeIf.h 362 B

123456789101112131415161718192021222324252627
  1. #ifndef EVENT_NODEIF_H
  2. #define EVENT_NODEIF_H
  3. namespace Egametang {
  4. class ContexIf;
  5. class EventNode;
  6. class NodeIf
  7. {
  8. public:
  9. virtual bool Run(ContexIf* contex) = 0;
  10. virtual void AddChildNode(NodeIf *node)
  11. {
  12. }
  13. };
  14. class NodeFactoryIf
  15. {
  16. public:
  17. virtual NodeIf* GetInstance(const EventNode& conf) = 0;
  18. };
  19. } // namespace Egametang
  20. #endif // EVENT_NODEIF_H