Changes between Version 2 and Version 3 of LuaPlugin
- Timestamp:
- 09/27/07 22:06:25 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LuaPlugin
v2 v3 11 11 For a simple use of lua language please ensure, that luaScripting.so (Unix) or luaScripting.dll (Windows) is properly installed, for example under the "data/plugins/" path. To load the lugin you can just call: 12 12 {{{ 13 #!cpp 13 14 Engine::sResourceManager()->loadResource("luaPlugin", "Plugins", "data/plugins/luaScripting", "Plugin"); 14 15 }}} … … 22 23 In the case you want to use your own lua state, so that all your manually defined functions are also accessable from the lua plugin, you can pass your lua state as a parameter to the plugin. This can be achieved in the following way: 23 24 {{{ 25 #!cpp 24 26 // create my own lua state 25 27 mLuaState = luaL_newstate();