c1_unity/Assets/XLua/Gen/BF_UIHelperWrap.cs
2025-11-03 15:00:43 +08:00

696 lines
23 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 BFUIHelperWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.UIHelper);
Utils.BeginObjectRegister(type, L, translator, 0, 17, 5, 2);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInit", _m_SetInit);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHasInitDefaultNotchScreenHeight", _m_GetHasInitDefaultNotchScreenHeight);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeCount", _m_GetNotchScreenNodeCount);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeGameObject", _m_GetNotchScreenNodeGameObject);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeAdjustHeight", _m_GetNotchScreenNodeAdjustHeight);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIsHaveNotchScreenNodeGameObject", _m_GetIsHaveNotchScreenNodeGameObject);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchoredPosition", _m_CacheAnchoredPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchorMin", _m_CacheAnchorMin);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchorMax", _m_CacheAnchorMax);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheOffsetMax", _m_CacheOffsetMax);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheOffsetMin", _m_CacheOffsetMin);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMax", _m_SetOffsetMax);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMin", _m_SetOffsetMin);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPosition", _m_SetAnchoredPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEffect", _m_AddEffect);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEffect", _m_RemoveEffect);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectList", _g_get_EffectList);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "NotchScreenNodeList", _g_get_NotchScreenNodeList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "EffectList", _s_set_EffectList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "NotchScreenNodeList", _s_set_NotchScreenNodeList);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new BF.UIHelper();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to BF.UIHelper constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetInit(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
bool _init = LuaAPI.lua_toboolean(L, 2);
gen_to_be_invoked.SetInit( _init );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetHasInitDefaultNotchScreenHeight(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetHasInitDefaultNotchScreenHeight( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreenNodeCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenNodeCount( );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreenNodeGameObject(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetNotchScreenNodeGameObject( _index );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreenNodeAdjustHeight(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetNotchScreenNodeAdjustHeight( _index );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetIsHaveNotchScreenNodeGameObject(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetIsHaveNotchScreenNodeGameObject( _index );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CacheAnchoredPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheAnchoredPosition( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CacheAnchorMin(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheAnchorMin( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CacheAnchorMax(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheAnchorMax( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CacheOffsetMax(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheOffsetMax( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CacheOffsetMin(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheOffsetMin( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetOffsetMax(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
gen_to_be_invoked.SetOffsetMax( _index, _x, _y );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetOffsetMin(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
gen_to_be_invoked.SetOffsetMin( _index, _x, _y );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetAnchoredPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
gen_to_be_invoked.SetAnchoredPosition( _index, _x, _y );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetSortingOrder(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
int _uiOrder = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.SetSortingOrder( _uiOrder );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AddEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
BF.BaseSortingOrderHelper _helper = (BF.BaseSortingOrderHelper)translator.GetObject(L, 2, typeof(BF.BaseSortingOrderHelper));
int _uiOrder = LuaAPI.xlua_tointeger(L, 3);
int _order = LuaAPI.xlua_tointeger(L, 4);
gen_to_be_invoked.AddEffect( _helper, _uiOrder, _order );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RemoveEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
{
BF.BaseSortingOrderHelper _helper = (BF.BaseSortingOrderHelper)translator.GetObject(L, 2, typeof(BF.BaseSortingOrderHelper));
gen_to_be_invoked.RemoveEffect( _helper );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PositionX(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PositionY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PositionZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_EffectList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.EffectList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_NotchScreenNodeList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.NotchScreenNodeList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_EffectList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.EffectList = (System.Collections.Generic.List<BF.BaseSortingOrderHelper>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.BaseSortingOrderHelper>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_NotchScreenNodeList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.NotchScreenNodeList = (System.Collections.Generic.List<BF.NotchScreenNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.NotchScreenNode>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}