//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class CheckInputLengthWrap { public static void Register(LuaState L) { L.BeginClass(typeof(CheckInputLength), typeof(UnityEngine.MonoBehaviour)); L.RegFunction("Check", Check); L.RegFunction("GetSplitName", GetSplitName); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("CHARACTER_LIMIT", get_CHARACTER_LIMIT, set_CHARACTER_LIMIT); L.RegVar("m_SplitType", get_m_SplitType, set_m_SplitType); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Check(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); CheckInputLength obj = (CheckInputLength)ToLua.CheckObject(L, 1); obj.Check(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetSplitName(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CheckInputLength obj = (CheckInputLength)ToLua.CheckObject(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string o = obj.GetSplitName(arg0); LuaDLL.lua_pushstring(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(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 get_CHARACTER_LIMIT(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CheckInputLength obj = (CheckInputLength)o; int ret = obj.CHARACTER_LIMIT; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CHARACTER_LIMIT on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_m_SplitType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CheckInputLength obj = (CheckInputLength)o; CheckInputLength.SplitType ret = obj.m_SplitType; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_SplitType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_CHARACTER_LIMIT(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CheckInputLength obj = (CheckInputLength)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.CHARACTER_LIMIT = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CHARACTER_LIMIT on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_m_SplitType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CheckInputLength obj = (CheckInputLength)o; CheckInputLength.SplitType arg0 = (CheckInputLength.SplitType)ToLua.CheckObject(L, 2, typeof(CheckInputLength.SplitType)); obj.m_SplitType = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_SplitType on a nil value"); } } }