#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 SnxxzUIMarketModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.MarketModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 11, 14, 6);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefreshData", _m_OnRefreshData);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemDealPrice", _m_GetItemDealPrice);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSelectType", _m_RefreshSelectType);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendBuyMarketItem", _m_SendBuyMarketItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckItemPutaway", _m_CheckItemPutaway);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefreshQueryMarketItem", _e_OnRefreshQueryMarketItem);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefreshItemDealPrice", _e_OnRefreshItemDealPrice);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSelectTypeEvent", _e_RefreshSelectTypeEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalPutawayCnt", _g_get_totalPutawayCnt);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxprice", _g_get_maxprice);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "minprice", _g_get_minprice);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dealRecordCnt", _g_get_dealRecordCnt);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fitters", _g_get_fitters);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "marketCfgDict", _g_get_marketCfgDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "marketDealItems", _g_get_marketDealItems);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bagItems", _g_get_bagItems);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "queryMarketItemList", _g_get_queryMarketItemList);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_AchievementIndex", _g_get_m_AchievementIndex);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentType", _g_get_presentType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentItemType", _g_get_presentItemType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnFitterConfirmEvent", _g_get_OnFitterConfirmEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnFitterWinCloseEvent", _g_get_OnFitterWinCloseEvent);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "queryMarketItemList", _s_set_queryMarketItemList);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_AchievementIndex", _s_set_m_AchievementIndex);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "presentType", _s_set_presentType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "presentItemType", _s_set_presentItemType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnFitterConfirmEvent", _s_set_OnFitterConfirmEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnFitterWinCloseEvent", _s_set_OnFitterWinCloseEvent);
|
|
|
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)
|
{
|
|
Snxxz.UI.MarketModel gen_ret = new Snxxz.UI.MarketModel();
|
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 Snxxz.UI.MarketModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)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);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)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_OnBeforePlayerDataInitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnBeforePlayerDataInitialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnRefreshData(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& translator.Assignable<H1B02_tagBourseItemOnSaleResult>(L, 2))
|
{
|
H1B02_tagBourseItemOnSaleResult _vNetData = (H1B02_tagBourseItemOnSaleResult)translator.GetObject(L, 2, typeof(H1B02_tagBourseItemOnSaleResult));
|
|
gen_to_be_invoked.OnRefreshData( _vNetData );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 2&& translator.Assignable<HA9AC_tagGCBourseItemPrice>(L, 2))
|
{
|
HA9AC_tagGCBourseItemPrice _vNetData = (HA9AC_tagGCBourseItemPrice)translator.GetObject(L, 2, typeof(HA9AC_tagGCBourseItemPrice));
|
|
gen_to_be_invoked.OnRefreshData( _vNetData );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.MarketModel.OnRefreshData!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_GetItemDealPrice(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
uint _itemID = LuaAPI.xlua_touint(L, 2);
|
|
uint gen_ret = gen_to_be_invoked.GetItemDealPrice( _itemID );
|
LuaAPI.xlua_pushuint(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_RefreshSelectType(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.RefreshSelectType( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SendBuyMarketItem(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __guid = LuaAPI.lua_tostring(L, 2);
|
string __pwd = LuaAPI.lua_tostring(L, 3);
|
|
gen_to_be_invoked.SendBuyMarketItem( __guid, __pwd );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckItemPutaway(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& translator.Assignable<Snxxz.UI.ItemModel>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
|
{
|
Snxxz.UI.ItemModel __itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
bool __showTip = LuaAPI.lua_toboolean(L, 3);
|
bool _ignoreCount = LuaAPI.lua_toboolean(L, 4);
|
|
bool gen_ret = gen_to_be_invoked.CheckItemPutaway( __itemModel, __showTip, _ignoreCount );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& translator.Assignable<Snxxz.UI.ItemModel>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
{
|
Snxxz.UI.ItemModel __itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
bool __showTip = LuaAPI.lua_toboolean(L, 3);
|
|
bool gen_ret = gen_to_be_invoked.CheckItemPutaway( __itemModel, __showTip );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.ItemModel>(L, 2))
|
{
|
Snxxz.UI.ItemModel __itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel));
|
|
bool gen_ret = gen_to_be_invoked.CheckItemPutaway( __itemModel );
|
LuaAPI.lua_pushboolean(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 Snxxz.UI.MarketModel.CheckItemPutaway!");
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_totalPutawayCnt(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.totalPutawayCnt);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_maxprice(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxprice);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_minprice(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minprice);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_dealRecordCnt(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dealRecordCnt);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_fitters(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.fitters);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_marketCfgDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.marketCfgDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_marketDealItems(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.marketDealItems);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_bagItems(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.bagItems);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_queryMarketItemList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.queryMarketItemList);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_AchievementIndex(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.m_AchievementIndex);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_presentType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.presentType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_presentItemType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.presentItemType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_OnFitterConfirmEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.OnFitterConfirmEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_OnFitterWinCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.OnFitterWinCloseEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_queryMarketItemList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.queryMarketItemList = (System.Collections.Generic.Dictionary<uint, System.Collections.Generic.List<MarketItemData>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<uint, System.Collections.Generic.List<MarketItemData>>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_m_AchievementIndex(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_AchievementIndex = LuaAPI.xlua_tointeger(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_presentType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.presentType = LuaAPI.xlua_tointeger(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_presentItemType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.presentItemType = LuaAPI.xlua_tointeger(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_OnFitterConfirmEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.OnFitterConfirmEvent = translator.GetDelegate<System.Action<int>>(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_OnFitterWinCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.OnFitterWinCloseEvent = translator.GetDelegate<System.Action>(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_OnRefreshQueryMarketItem(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.OnRefreshQueryMarketItem += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.OnRefreshQueryMarketItem -= 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 Snxxz.UI.MarketModel.OnRefreshQueryMarketItem!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_OnRefreshItemDealPrice(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.OnRefreshItemDealPrice += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.OnRefreshItemDealPrice -= 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 Snxxz.UI.MarketModel.OnRefreshItemDealPrice!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_RefreshSelectTypeEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.MarketModel gen_to_be_invoked = (Snxxz.UI.MarketModel)translator.FastGetCSObj(L, 1);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.RefreshSelectTypeEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.RefreshSelectTypeEvent -= 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 Snxxz.UI.MarketModel.RefreshSelectTypeEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|