#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 SelectEquipModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(SelectEquipModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 17, 4, 3);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnfixedItemModel", _m_GetUnfixedItemModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAddItemModel", _m_GetAddItemModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOneKeyPutModel", _m_GetOneKeyPutModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareByOneKeyPut", _m_CompareByOneKeyPut);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareByCondition", _m_CompareByCondition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHaveUnfixedSelectItem", _m_AddHaveUnfixedSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHaveUnfixedSelectItem", _m_RemoveHaveUnfixedSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHaveAddSelectItem", _m_AddHaveAddSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHaveAddSelectItem", _m_RemoveHaveAddSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelectMatCell", _m_SetSelectMatCell);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectItem", _m_UpdateSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSelectModel", _m_ClearSelectModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHaveUnfixedSelectItem", _m_GetHaveUnfixedSelectItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHaveAddSelectItem", _m_GetHaveAddSelectItem);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectEvent", _e_UpdateSelectEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectMatCell", _g_get_selectMatCell);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectItem", _g_get_selectItem);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraOneKeyPutCondis", _g_get_extraOneKeyPutCondis);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "noOneKeyPutCondis", _g_get_noOneKeyPutCondis);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectItem", _s_set_selectItem);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "extraOneKeyPutCondis", _s_set_extraOneKeyPutCondis);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "noOneKeyPutCondis", _s_set_noOneKeyPutCondis);
|
|
|
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)
|
{
|
|
SelectEquipModel gen_ret = new SelectEquipModel();
|
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 SelectEquipModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Init( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.UnInit( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetUnfixedItemModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetUnfixedItemModel( );
|
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_GetAddItemModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetAddItemModel( );
|
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_GetOneKeyPutModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetOneKeyPutModel( );
|
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_CompareByOneKeyPut(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _start = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
Snxxz.UI.ItemModel _end = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel));
|
|
int gen_ret = gen_to_be_invoked.CompareByOneKeyPut( _start, _end );
|
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_CompareByCondition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ItemModel _start = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
Snxxz.UI.ItemModel _end = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel));
|
|
int gen_ret = gen_to_be_invoked.CompareByCondition( _start, _end );
|
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_AddHaveUnfixedSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemPlace = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.AddHaveUnfixedSelectItem( _itemPlace );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RemoveHaveUnfixedSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemPlace = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RemoveHaveUnfixedSelectItem( _itemPlace );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_AddHaveAddSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemPlace = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.AddHaveAddSelectItem( _itemPlace );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RemoveHaveAddSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemPlace = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RemoveHaveAddSelectItem( _itemPlace );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetSelectMatCell(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.ComposeMatCell _matCell = (Snxxz.UI.ComposeMatCell)translator.GetObject(L, 2, typeof(Snxxz.UI.ComposeMatCell));
|
|
gen_to_be_invoked.SetSelectMatCell( _matCell );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemIndex = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.UpdateSelectItem( _itemIndex );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ClearSelectModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ClearSelectModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetHaveUnfixedSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetHaveUnfixedSelectItem( );
|
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_GetHaveAddSelectItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.Dictionary<int, Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetHaveAddSelectItem( );
|
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 _g_get_selectMatCell(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.selectMatCell);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_selectItem(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.selectItem);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_extraOneKeyPutCondis(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.extraOneKeyPutCondis);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_noOneKeyPutCondis(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.noOneKeyPutCondis);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_selectItem(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
SelectItemType gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.selectItem = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_extraOneKeyPutCondis(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.extraOneKeyPutCondis = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_noOneKeyPutCondis(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.noOneKeyPutCondis = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_UpdateSelectEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.UpdateSelectEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.UpdateSelectEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to SelectEquipModel.UpdateSelectEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|