| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- //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<TMPro.TMP_Text>(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");
- }
- }
- }
|