#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 GetItemPathModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(GetItemPathModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 12, 4, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetChinItemModel", _m_SetChinItemModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRuneModel", _m_SetRuneModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPetMatUnlockModel", _m_SetPetMatUnlockModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExtraInfos", _m_GetExtraInfos);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllInfoDes", _m_GetAllInfoDes);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAllModel", _m_ResetAllModel);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWaysList", _m_GetWaysList);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClickGetWay", _m_ClickGetWay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUnionWarehouseGetWay", _m_SetUnionWarehouseGetWay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInfoTipsPos", _m_SetInfoTipsPos);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "chinItemModel", _g_get_chinItemModel);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isBind", _g_get_isBind);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "level", _g_get_level);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraInfos", _g_get_extraInfos);
|
|
|
|
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)
|
{
|
|
GetItemPathModel gen_ret = new GetItemPathModel();
|
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 GetItemPathModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)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);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)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_SetChinItemModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count >= 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 5) || (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _isBind = LuaAPI.xlua_tointeger(L, 3);
|
bool _isNoOpen = LuaAPI.lua_toboolean(L, 4);
|
string[] _extraInfos = translator.GetParams<string>(L, 5);
|
|
gen_to_be_invoked.SetChinItemModel( _itemId, _isBind, _isNoOpen, _extraInfos );
|
|
|
|
return 0;
|
}
|
if(gen_param_count >= 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _isBind = LuaAPI.xlua_tointeger(L, 3);
|
bool _isNoOpen = LuaAPI.lua_toboolean(L, 4);
|
|
gen_to_be_invoked.SetChinItemModel( _itemId, _isBind, _isNoOpen );
|
|
|
|
return 0;
|
}
|
if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _isBind = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SetChinItemModel( _itemId, _isBind );
|
|
|
|
return 0;
|
}
|
if(gen_param_count >= 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.SetChinItemModel( _itemId );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to GetItemPathModel.SetChinItemModel!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetRuneModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int __level = LuaAPI.xlua_tointeger(L, 3);
|
string[] _extraInfos = translator.GetParams<string>(L, 4);
|
|
gen_to_be_invoked.SetRuneModel( _itemId, __level, _extraInfos );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetPetMatUnlockModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count >= 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _isBind = LuaAPI.xlua_tointeger(L, 3);
|
string[] _extraInfos = translator.GetParams<string>(L, 4);
|
|
gen_to_be_invoked.SetPetMatUnlockModel( _itemId, _isBind, _extraInfos );
|
|
|
|
return 0;
|
}
|
if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
int _isBind = LuaAPI.xlua_tointeger(L, 3);
|
|
gen_to_be_invoked.SetPetMatUnlockModel( _itemId, _isBind );
|
|
|
|
return 0;
|
}
|
if(gen_param_count >= 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.SetPetMatUnlockModel( _itemId );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to GetItemPathModel.SetPetMatUnlockModel!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetExtraInfos(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
string gen_ret = gen_to_be_invoked.GetExtraInfos( );
|
LuaAPI.lua_pushstring(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_GetAllInfoDes(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
string gen_ret = gen_to_be_invoked.GetAllInfoDes( );
|
LuaAPI.lua_pushstring(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_ResetAllModel(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ResetAllModel( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetWaysList(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<TableConfig.GetItemWaysConfig> gen_ret = gen_to_be_invoked.GetWaysList( );
|
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_ClickGetWay(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _itemId = LuaAPI.xlua_tointeger(L, 2);
|
TableConfig.GetItemWaysConfig _itemWaysModel = (TableConfig.GetItemWaysConfig)translator.GetObject(L, 3, typeof(TableConfig.GetItemWaysConfig));
|
|
gen_to_be_invoked.ClickGetWay( _itemId, _itemWaysModel );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetUnionWarehouseGetWay(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetUnionWarehouseGetWay( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetInfoTipsPos(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
UnityEngine.RectTransform _infoTip = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform));
|
UnityEngine.RectTransform _waysTip = (UnityEngine.RectTransform)translator.GetObject(L, 3, typeof(UnityEngine.RectTransform));
|
|
gen_to_be_invoked.SetInfoTipsPos( _infoTip, _waysTip );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_chinItemModel(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.chinItemModel);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_isBind(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.isBind);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_level(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.level);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_extraInfos(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
GetItemPathModel gen_to_be_invoked = (GetItemPathModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.extraInfos);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
|
|
|
|
}
|
}
|