My Project
IEvent.h
1 #pragma once
2 
3 namespace ParaEngine
4 {
5  using namespace std;
6 
8  struct IEvent
9  {
10  public:
12  virtual int GetEventType() const { return -1; }
13 
15  virtual string ToScriptCode() const { return ""; };
16 
18  virtual bool IsAsyncMode() const { return true; }
19 
21  virtual int GetEventID() const { return 0; }
22  };
23 
25  typedef boost::signals2::signal<void(const IEvent*, const std::string&)> EventHandler_Callback_t;
26 }
virtual bool IsAsyncMode() const
return true, if firing event does not immediately invoke the handler.
Definition: IEvent.h:18
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual int GetEventType() const
get event type
Definition: IEvent.h:12
the event interface
Definition: IEvent.h:8
virtual int GetEventID() const
get event id
Definition: IEvent.h:21
boost::signals2::signal< void(const IEvent *, const std::string &)> EventHandler_Callback_t
sync file call back function or class.
Definition: IEvent.h:25
virtual string ToScriptCode() const
build script code and return.
Definition: IEvent.h:15