| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class I18NWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(I18N), typeof(System.Object));
- L.RegFunction("T", T);
- L.RegFunction("SetLanguageValue", SetLanguageValue);
- L.RegFunction("New", _CreateI18N);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateI18N(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- I18N obj = new I18N();
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: I18N.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int T(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- string arg0 = ToLua.CheckString(L, 1);
- string o = I18N.T(arg0);
- LuaDLL.lua_pushstring(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetLanguageValue(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- string arg0 = ToLua.CheckString(L, 1);
- string[] arg1 = ToLua.CheckParamsString(L, 2, count - 1);
- string o = I18N.SetLanguageValue(arg0, arg1);
- LuaDLL.lua_pushstring(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|