00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __SCRIPTEDEVENT_H__
00017 #define __SCRIPTEDEVENT_H__
00018
00019
00020 #include "../../dependencies.h"
00021
00022 #ifdef __COMPILE_WITH_ANGELSCRIPT__
00023
00024 #include "../../core/ReferenceCounted.h"
00025 #include "../../core/HasEvents.h"
00026
00027
00028
00030 class ScriptedEvent : public sigslot::has_slots<>, public ReferenceCounted
00031 {
00032 public:
00033
00034
00038 ScriptedEvent(asIScriptObject *object, const std::string &function);
00040 ~ScriptedEvent();
00041
00042
00044 void onEvent(void *p);
00046 void onDisconnect(void *p);
00047
00048 private:
00049
00050
00051 asIScriptObject *mObject;
00052 asIScriptContext *mContext;
00053
00054 std::string mFunction;
00055 };
00056
00057 #endif // __COMPILE_WITH_ANGELSCRIPT__
00058
00059 #endif