//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class SuperScrollView_RowColumnPairWrap { public static void Register(LuaState L) { L.BeginClass(typeof(SuperScrollView.RowColumnPair), null); L.RegFunction("Equals", Equals); L.RegFunction("GetHashCode", GetHashCode); L.RegFunction("New", _CreateSuperScrollView_RowColumnPair); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("mRow", get_mRow, set_mRow); L.RegVar("mColumn", get_mColumn, set_mColumn); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateSuperScrollView_RowColumnPair(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); SuperScrollView.RowColumnPair obj = new SuperScrollView.RowColumnPair(arg0, arg1); ToLua.PushValue(L, obj); return 1; } else if (count == 0) { SuperScrollView.RowColumnPair obj = new SuperScrollView.RowColumnPair(); ToLua.PushValue(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: SuperScrollView.RowColumnPair.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Equals(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 2)) { SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair)); SuperScrollView.RowColumnPair arg0 = StackTraits.To(L, 2); bool o = obj.Equals(arg0); LuaDLL.lua_pushboolean(L, o); ToLua.SetBack(L, 1, obj); return 1; } else if (count == 2 && TypeChecker.CheckTypes(L, 2)) { SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair)); object arg0 = ToLua.ToVarObject(L, 2); bool o = obj.Equals(arg0); LuaDLL.lua_pushboolean(L, o); ToLua.SetBack(L, 1, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.RowColumnPair.Equals"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SuperScrollView.RowColumnPair arg0 = StackTraits.To(L, 1); SuperScrollView.RowColumnPair arg1 = StackTraits.To(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetHashCode(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair)); int o = obj.GetHashCode(); LuaDLL.lua_pushinteger(L, o); ToLua.SetBack(L, 1, obj); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_mRow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o; int ret = obj.mRow; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index mRow on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_mColumn(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o; int ret = obj.mColumn; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index mColumn on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_mRow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.mRow = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index mRow on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_mColumn(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.mColumn = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index mColumn on a nil value"); } } }