319 |
lua_mathlibopen(state); |
lua_mathlibopen(state); |
320 |
lua_iolibopen(state); |
lua_iolibopen(state); |
321 |
|
|
322 |
|
tolua_enigma_open(state); |
323 |
|
tolua_px_open(state); |
324 |
|
|
325 |
// Create a new tag for world::Object objects |
// Create a new tag for world::Object objects |
326 |
object_tag = lua_newtag(state); |
object_tag = lua_newtag(state); |
327 |
|
|
|
// Create a new table to store all variables and functions |
|
|
// accessible from LUA. |
|
|
lua_newtable(state); |
|
|
lua_setglobal(state, "enigma"); |
|
|
|
|
328 |
// Register all functions |
// Register all functions |
329 |
RegisterFuncs(luafuncs); |
RegisterFuncs(luafuncs); |
|
|
|
|
tolua_enigma_open(state); |
|
|
tolua_px_open(state); |
|
330 |
} |
} |
331 |
|
|
332 |
void lua::Shutdown() |
void lua::Shutdown() |