c1_unity/Assets/XLua/Gen/TMPro_TMP_UpdateManagerWrap.cs
2023-04-03 11:04:31 +08:00

176 lines
5.2 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class TMProTMP_UpdateManagerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(TMPro.TMP_UpdateManager);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForLayoutRebuild", _m_RegisterTextElementForLayoutRebuild_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForGraphicRebuild", _m_RegisterTextElementForGraphicRebuild_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "RegisterTextElementForCullingUpdate", _m_RegisterTextElementForCullingUpdate_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "UnRegisterTextElementForRebuild", _m_UnRegisterTextElementForRebuild_xlua_st_);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "TMPro.TMP_UpdateManager does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RegisterTextElementForLayoutRebuild_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text));
TMPro.TMP_UpdateManager.RegisterTextElementForLayoutRebuild( _element );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RegisterTextElementForGraphicRebuild_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text));
TMPro.TMP_UpdateManager.RegisterTextElementForGraphicRebuild( _element );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RegisterTextElementForCullingUpdate_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text));
TMPro.TMP_UpdateManager.RegisterTextElementForCullingUpdate( _element );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_UnRegisterTextElementForRebuild_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
TMPro.TMP_Text _element = (TMPro.TMP_Text)translator.GetObject(L, 1, typeof(TMPro.TMP_Text));
TMPro.TMP_UpdateManager.UnRegisterTextElementForRebuild( _element );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}