|
|
@@ -1,8 +1,5 @@
|
|
|
$#include "LuaScript.h"
|
|
|
|
|
|
-void ExecuteFile(const String& fileName);
|
|
|
-void ExecuteFile(const char* fileName);
|
|
|
-
|
|
|
Object* GetEventSender();
|
|
|
|
|
|
void SendEvent(const String& eventName, VariantMap& eventData);
|
|
|
@@ -21,11 +18,6 @@ static LuaScript* GetLuaScript()
|
|
|
return GetContext()->GetSubsystem<LuaScript>();
|
|
|
}
|
|
|
|
|
|
-static bool ExecuteFile(const String& fileName)
|
|
|
-{
|
|
|
- return GetLuaScript()->ExecuteFile(fileName);
|
|
|
-}
|
|
|
-
|
|
|
static void SendEvent(const String& eventName, VariantMap& eventData)
|
|
|
{
|
|
|
GetLuaScript()->ScriptSendEvent(eventName, eventData);
|
|
|
@@ -33,7 +25,7 @@ static void SendEvent(const String& eventName, VariantMap& eventData)
|
|
|
|
|
|
static Object* GetEventSender()
|
|
|
{
|
|
|
- return GetLuaScript()->GetEventSender();
|
|
|
+ return GetContext()->GetEventSender();
|
|
|
}
|
|
|
|
|
|
static void SubscribeToEvent(const String& eventName, const char* functionName)
|