PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
luaclass_core_simpleevent.h
1 #ifndef BINDING_LEVEL_CLASS_SIMPLEEVENT_H
2 #define BINDING_LEVEL_CLASS_SIMPLEEVENT_H
3 
4 #include <luabind/luabind.hpp>
5 #include <lua_inclues/lua.hpp>
6 
8 {
9 public:
11  Binding_Core_Class_SimpleEvent(luabind::object dataObj, bool cancellable = false);
12 
13  void setDataObject(luabind::object dataObj);
14  luabind::object getDataObject();
15  bool isCancellable();
16  void setCancelled(bool cancelled, lua_State* L);
17  bool getCancelled();
18  static luabind::scope bindToLua();
19 
20 private:
21  luabind::object eventData;
22  bool eventCancellable;
23  bool eventCancelled;
24 };
25 
27 
28 #endif // BINDING_LEVEL_CLASS_SIMPLEEVENT_H
Definition: luaclass_core_simpleevent.h:7