|
|
@ -47,7 +47,6 @@ class ScriptFunctions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
static void GetArguments(std::vector<boost::any> ¶ms, va_list args, const std::string &def);
|
|
|
|
|
|
|
|
static void MakePublic(ScriptFunc _public, const char *name, char ret_type, const char *def) noexcept;
|
|
|
|
static void MakePublic(ScriptFunc _public, const char *name, char ret_type, const char *def) noexcept;
|
|
|
|
static boost::any CallPublic(const char *name, va_list args) noexcept;
|
|
|
|
static boost::any CallPublic(const char *name, va_list args) noexcept;
|
|
|
|
|
|
|
|
|
|
|
@ -157,6 +156,7 @@ public:
|
|
|
|
{"OnServerInit", Callback<>()},
|
|
|
|
{"OnServerInit", Callback<>()},
|
|
|
|
{"OnServerPostInit", Callback<>()},
|
|
|
|
{"OnServerPostInit", Callback<>()},
|
|
|
|
{"OnServerExit", Callback<bool>()},
|
|
|
|
{"OnServerExit", Callback<bool>()},
|
|
|
|
|
|
|
|
{"OnServerScriptCrash", Callback<const char*>()},
|
|
|
|
{"OnPlayerConnect", Callback<unsigned short>()},
|
|
|
|
{"OnPlayerConnect", Callback<unsigned short>()},
|
|
|
|
{"OnPlayerDisconnect", Callback<unsigned short>()},
|
|
|
|
{"OnPlayerDisconnect", Callback<unsigned short>()},
|
|
|
|
{"OnPlayerDeath", Callback<unsigned short>()},
|
|
|
|
{"OnPlayerDeath", Callback<unsigned short>()},
|
|
|
@ -209,7 +209,7 @@ public:
|
|
|
|
{"OnWorldMap", Callback<unsigned short>()},
|
|
|
|
{"OnWorldMap", Callback<unsigned short>()},
|
|
|
|
{"OnWorldWeather", Callback<unsigned short>() },
|
|
|
|
{"OnWorldWeather", Callback<unsigned short>() },
|
|
|
|
{"OnMpNumIncrement", Callback<int>()},
|
|
|
|
{"OnMpNumIncrement", Callback<int>()},
|
|
|
|
{"OnRequestPluginList", Callback<>()}
|
|
|
|
{"OnRequestDataFileList", Callback<>()}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|