//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class VersionWrap { public static void Register(LuaState L) { L.BeginClass(typeof(Version), typeof(System.Object)); L.RegFunction("FillData", FillData); L.RegFunction("ContainAll", ContainAll); L.RegFunction("ToString", ToString); L.RegFunction("ReadVersion", ReadVersion); L.RegFunction("ReadVersionArray", ReadVersionArray); L.RegFunction("New", _CreateVersion); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("DEFUALT", get_DEFUALT, null); L.RegVar("max_version", get_max_version, set_max_version); L.RegVar("min_version", get_min_version, set_min_version); L.RegVar("pack_version", get_pack_version, set_pack_version); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateVersion(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { string arg0 = ToLua.CheckString(L, 1); Version obj = new Version(arg0); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Version.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int FillData(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Version obj = (Version)ToLua.CheckObject(L, 1); Version arg0 = (Version)ToLua.CheckObject(L, 2); obj.FillData(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ContainAll(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Version obj = (Version)ToLua.CheckObject(L, 1); Version arg0 = (Version)ToLua.CheckObject(L, 2); bool o = obj.ContainAll(arg0); LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Version obj = (Version)ToLua.CheckObject(L, 1); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ReadVersion(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { string arg0 = ToLua.CheckString(L, 1); int o = Version.ReadVersion(arg0); LuaDLL.lua_pushinteger(L, o); return 1; } else if (count == 2) { string arg0 = ToLua.CheckString(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int o = Version.ReadVersion(arg0, arg1); LuaDLL.lua_pushinteger(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: Version.ReadVersion"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ReadVersionArray(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); int[] o = Version.ReadVersionArray(arg0); ToLua.Push(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_DEFUALT(IntPtr L) { try { ToLua.PushObject(L, Version.DEFUALT); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_max_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int ret = obj.max_version; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index max_version on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_min_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int ret = obj.min_version; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index min_version on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_pack_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int ret = obj.pack_version; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index pack_version on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_max_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.max_version = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index max_version on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_min_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.min_version = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index min_version on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_pack_version(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Version obj = (Version)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.pack_version = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index pack_version on a nil value"); } } }