| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class LuaConstWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginStaticLibs("LuaConst");
- L.RegVar("luaDir", get_luaDir, set_luaDir);
- L.RegVar("toluaDir", get_toluaDir, set_toluaDir);
- L.RegVar("osDir", get_osDir, set_osDir);
- L.RegVar("luaResDir", get_luaResDir, set_luaResDir);
- L.RegVar("zbsDir", get_zbsDir, set_zbsDir);
- L.RegVar("openLuaSocket", get_openLuaSocket, set_openLuaSocket);
- L.RegVar("openLuaDebugger", get_openLuaDebugger, set_openLuaDebugger);
- L.EndStaticLibs();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_luaDir(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, LuaConst.luaDir);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_toluaDir(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, LuaConst.toluaDir);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_osDir(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, LuaConst.osDir);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_luaResDir(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, LuaConst.luaResDir);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_zbsDir(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, LuaConst.zbsDir);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_openLuaSocket(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, LuaConst.openLuaSocket);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_openLuaDebugger(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, LuaConst.openLuaDebugger);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_luaDir(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- LuaConst.luaDir = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_toluaDir(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- LuaConst.toluaDir = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_osDir(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- LuaConst.osDir = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_luaResDir(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- LuaConst.luaResDir = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_zbsDir(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- LuaConst.zbsDir = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_openLuaSocket(IntPtr L)
- {
- try
- {
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- LuaConst.openLuaSocket = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_openLuaDebugger(IntPtr L)
- {
- try
- {
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- LuaConst.openLuaDebugger = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|