diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-15 06:35:03 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-15 06:35:03 +0000 |
commit | 99548fb47fee447b5f22d5338501ac574086c4fd (patch) | |
tree | fcef60aed6d7d0f04437249815af36c25461c5dd /src/scripting/lua.cpp | |
parent | 2fa455ff7870dc09d75bb89a897c7c1d26eb9020 (diff) | |
download | manaserv-99548fb47fee447b5f22d5338501ac574086c4fd.tar.gz manaserv-99548fb47fee447b5f22d5338501ac574086c4fd.tar.bz2 manaserv-99548fb47fee447b5f22d5338501ac574086c4fd.tar.xz manaserv-99548fb47fee447b5f22d5338501ac574086c4fd.zip |
Added helper functions for loading files and NPCs as scripts. Put Lua helpers into a separate library automatically loaded into new contexts.
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r-- | src/scripting/lua.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 0fc3283d..34415a27 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -356,6 +356,7 @@ LuaScript::LuaScript(): lua_settable(mState, LUA_REGISTRYINDEX); lua_settop(mState, 0); + loadFile("scripts/libtmw.lua"); } LuaScript::~LuaScript() |