//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class TMPro_TMP_LinkInfoWrap { public static void Register(LuaState L) { L.BeginClass(typeof(TMPro.TMP_LinkInfo), null); L.RegFunction("GetLinkText", GetLinkText); L.RegFunction("GetLinkID", GetLinkID); L.RegFunction("New", _CreateTMPro_TMP_LinkInfo); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("textComponent", get_textComponent, set_textComponent); L.RegVar("hashCode", get_hashCode, set_hashCode); L.RegVar("linkIdFirstCharacterIndex", get_linkIdFirstCharacterIndex, set_linkIdFirstCharacterIndex); L.RegVar("linkIdLength", get_linkIdLength, set_linkIdLength); L.RegVar("linkTextfirstCharacterIndex", get_linkTextfirstCharacterIndex, set_linkTextfirstCharacterIndex); L.RegVar("linkTextLength", get_linkTextLength, set_linkTextLength); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateTMPro_TMP_LinkInfo(IntPtr L) { TMPro.TMP_LinkInfo obj = new TMPro.TMP_LinkInfo(); ToLua.PushValue(L, obj); return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetLinkText(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)ToLua.CheckObject(L, 1, typeof(TMPro.TMP_LinkInfo)); string o = obj.GetLinkText(); LuaDLL.lua_pushstring(L, o); ToLua.SetBack(L, 1, obj); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetLinkID(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)ToLua.CheckObject(L, 1, typeof(TMPro.TMP_LinkInfo)); string o = obj.GetLinkID(); LuaDLL.lua_pushstring(L, o); ToLua.SetBack(L, 1, obj); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_textComponent(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; TMPro.TMP_Text ret = obj.textComponent; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_hashCode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int ret = obj.hashCode; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index hashCode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_linkIdFirstCharacterIndex(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int ret = obj.linkIdFirstCharacterIndex; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdFirstCharacterIndex on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_linkIdLength(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int ret = obj.linkIdLength; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdLength on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_linkTextfirstCharacterIndex(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int ret = obj.linkTextfirstCharacterIndex; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextfirstCharacterIndex on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_linkTextLength(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int ret = obj.linkTextLength; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextLength on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_textComponent(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; TMPro.TMP_Text arg0 = (TMPro.TMP_Text)ToLua.CheckObject(L, 2); obj.textComponent = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_hashCode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.hashCode = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index hashCode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_linkIdFirstCharacterIndex(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.linkIdFirstCharacterIndex = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdFirstCharacterIndex on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_linkIdLength(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.linkIdLength = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdLength on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_linkTextfirstCharacterIndex(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.linkTextfirstCharacterIndex = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextfirstCharacterIndex on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_linkTextLength(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.linkTextLength = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextLength on a nil value"); } } }