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

578 lines
19 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 BFBFScrollRectBaseWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.BFScrollRectBase);
Utils.BeginObjectRegister(type, L, translator, 0, 15, 3, 2);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRefreshAction", _m_SetRefreshAction);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOnInstantiateCellAction", _m_SetOnInstantiateCellAction);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelectedAction", _m_SetSelectedAction);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectedIndex", _m_GetSelectedIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPositionChange", _m_SetAnchoredPositionChange);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToIndex", _m_MoveToIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCell", _m_RemoveCell);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ContentTrans", _g_get_ContentTrans);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDrag", _g_get_isDrag);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "contentTrans", _g_get_contentTrans);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDrag", _s_set_isDrag);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "contentTrans", _s_set_contentTrans);
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)
{
return LuaAPI.luaL_error(L, "BF.BFScrollRectBase does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetRefreshAction(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
System.Action<int, int> _action = translator.GetDelegate<System.Action<int, int>>(L, 2);
gen_to_be_invoked.SetRefreshAction( _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetOnInstantiateCellAction(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
System.Action<UnityEngine.GameObject> _action = translator.GetDelegate<System.Action<UnityEngine.GameObject>>(L, 2);
gen_to_be_invoked.SetOnInstantiateCellAction( _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetSelectedAction(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
System.Action<bool, int> _action = translator.GetDelegate<System.Action<bool, int>>(L, 2);
gen_to_be_invoked.SetSelectedAction( _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetSelectedIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetSelectedIndex( );
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_SetAnchoredPositionChange(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
System.Action<float, float> _action = translator.GetDelegate<System.Action<float, float>>(L, 2);
gen_to_be_invoked.SetAnchoredPositionChange( _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RefillCells(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
int _totalCount = LuaAPI.xlua_tointeger(L, 2);
int _targetIndex = LuaAPI.xlua_tointeger(L, 3);
gen_to_be_invoked.RefillCells( _totalCount, _targetIndex );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetTotalCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
int _totalCount = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.SetTotalCount( _totalCount );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RefreshAll(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.RefreshAll( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ClearCells(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.ClearCells( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetSelected(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.SetSelected( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AnchoredPositionChange(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.AnchoredPositionChange( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_MoveToIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.MoveToIndex( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RemoveCell(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.RemoveCell( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnBeginDrag(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
gen_to_be_invoked.OnBeginDrag( _eventData );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnEndDrag(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
{
UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
gen_to_be_invoked.OnEndDrag( _eventData );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_ContentTrans(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.ContentTrans);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isDrag(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDrag);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_contentTrans(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.contentTrans);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_isDrag(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.isDrag = LuaAPI.lua_toboolean(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_contentTrans(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.contentTrans = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}