neutrino: add a prototype of a lua plugin interface

this is just for preliminary tests, not yet really usable
for anything useful
This commit is contained in:
Stefan Seyfried
2013-03-17 23:24:45 +01:00
committed by M. Liebmann
parent 7b40b61c9a
commit f26357e887
8 changed files with 378 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ class CPlugins
P_TYPE_DISABLED = 0x1,
P_TYPE_GAME = 0x2,
P_TYPE_TOOL = 0x4,
P_TYPE_SCRIPT = 0x8
P_TYPE_SCRIPT = 0x8,
P_TYPE_LUA = 0x10
}
p_type_t;
@@ -122,6 +123,7 @@ class CPlugins
void startPlugin(int number,int param);
void start_plugin_by_name(const std::string & filename,int param);// start plugins by "name=" in .cfg
void startScriptPlugin(int number);
void startLuaPlugin(int number);
void startPlugin(const char * const filename); // start plugins also by name
bool hasPlugin(CPlugins::p_type_t type);