#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 SnxxzUIOperationTimeHeplerWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.OperationTimeHepler);
|
Utils.BeginObjectRegister(type, L, translator, 0, 24, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMultipleExp", _m_UpdateMultipleExp);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateConsumeRebate", _m_UpdateConsumeRebate);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashSale", _m_UpdateFlashSale);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashRushToBuy", _m_UpdateFlashRushToBuy);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWishingWellInfo", _m_UpdateWishingWellInfo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGiftPackage", _m_UpdateGiftPackage);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateBossReborn", _m_UpdateBossReborn);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshFairyCeremonyInfo", _m_RefreshFairyCeremonyInfo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshNTimesPractice", _m_RefreshNTimesPractice);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOperationTime", _m_TryGetOperationTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "InOperationTime", _m_InOperationTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "InOperationDay", _m_InOperationDay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOperationSurplusTime", _m_GetOperationSurplusTime);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "InOperationAdvance", _m_InOperationAdvance);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOperationSecondsBeforeStart", _m_GetOperationSecondsBeforeStart);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyOpenCondition", _m_SatisfyOpenCondition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyAdvanceCondition", _m_SatisfyAdvanceCondition);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessConditionError", _m_ProcessConditionError);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "operationTimeUpdateEvent", _e_operationTimeUpdateEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "operationServerCloseEvent", _e_operationServerCloseEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "operationEndEvent", _e_operationEndEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "operationStartEvent", _e_operationStartEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "dayResetEvent", _e_dayResetEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "operationAdvanceEvent", _e_operationAdvanceEvent);
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1);
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "textBuilder", _g_get_textBuilder);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "textBuilder", _s_set_textBuilder);
|
|
|
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.OperationTimeHepler gen_ret = new Snxxz.UI.OperationTimeHepler();
|
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.OperationTimeHepler constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateMultipleExp(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAC06_tagGCMultiExpRateInfo _package = (HAC06_tagGCMultiExpRateInfo)translator.GetObject(L, 2, typeof(HAC06_tagGCMultiExpRateInfo));
|
|
gen_to_be_invoked.UpdateMultipleExp( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateConsumeRebate(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAA09_tagMCCostRebateInfo _package = (HAA09_tagMCCostRebateInfo)translator.GetObject(L, 2, typeof(HAA09_tagMCCostRebateInfo));
|
|
gen_to_be_invoked.UpdateConsumeRebate( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateFlashSale(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAA11_tagMCSpringSaleInfo _package = (HAA11_tagMCSpringSaleInfo)translator.GetObject(L, 2, typeof(HAA11_tagMCSpringSaleInfo));
|
|
gen_to_be_invoked.UpdateFlashSale( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateFlashRushToBuy(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAA17_tagMCFlashSaleInfo _package = (HAA17_tagMCFlashSaleInfo)translator.GetObject(L, 2, typeof(HAA17_tagMCFlashSaleInfo));
|
|
gen_to_be_invoked.UpdateFlashRushToBuy( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateWishingWellInfo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAA19_tagMCActWishingWellInfo _package = (HAA19_tagMCActWishingWellInfo)translator.GetObject(L, 2, typeof(HAA19_tagMCActWishingWellInfo));
|
|
gen_to_be_invoked.UpdateWishingWellInfo( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateGiftPackage(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAA12_tagMCFlashGiftbagInfo _package = (HAA12_tagMCFlashGiftbagInfo)translator.GetObject(L, 2, typeof(HAA12_tagMCFlashGiftbagInfo));
|
|
gen_to_be_invoked.UpdateGiftPackage( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateBossReborn(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAB04_tagMCBossRebornInfo _package = (HAB04_tagMCBossRebornInfo)translator.GetObject(L, 2, typeof(HAB04_tagMCBossRebornInfo));
|
|
gen_to_be_invoked.UpdateBossReborn( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshFairyCeremonyInfo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAC09_tagGCFairyCeremonyInfo _package = (HAC09_tagGCFairyCeremonyInfo)translator.GetObject(L, 2, typeof(HAC09_tagGCFairyCeremonyInfo));
|
|
gen_to_be_invoked.RefreshFairyCeremonyInfo( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RefreshNTimesPractice(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAC0A_tagGCMultiRealmPointInfo _package = (HAC0A_tagGCMultiRealmPointInfo)translator.GetObject(L, 2, typeof(HAC0A_tagGCMultiRealmPointInfo));
|
|
gen_to_be_invoked.RefreshNTimesPractice( _package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetOperationTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
Snxxz.UI.OperationBase _operation;
|
|
bool gen_ret = gen_to_be_invoked.TryGetOperationTime( _type, out _operation );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, _operation);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_InOperationTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.InOperationTime( _type );
|
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_InOperationDay(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.InOperationDay( _type );
|
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_GetOperationSurplusTime(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
int gen_ret = gen_to_be_invoked.GetOperationSurplusTime( _type );
|
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_InOperationAdvance(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.InOperationAdvance( _type );
|
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_GetOperationSecondsBeforeStart(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
int gen_ret = gen_to_be_invoked.GetOperationSecondsBeforeStart( _type );
|
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_SatisfyOpenCondition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyOpenCondition( _type );
|
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_SatisfyAdvanceCondition(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
bool gen_ret = gen_to_be_invoked.SatisfyAdvanceCondition( _type );
|
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_ProcessConditionError(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.Operation _type;translator.Get(L, 2, out _type);
|
|
gen_to_be_invoked.ProcessConditionError( _type );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_textBuilder(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
translator.Push(L, Snxxz.UI.OperationTimeHepler.textBuilder);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_textBuilder(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
Snxxz.UI.OperationTimeHepler.textBuilder = (System.Text.StringBuilder)translator.GetObject(L, 1, typeof(System.Text.StringBuilder));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_operationTimeUpdateEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Operation> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Operation>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Operation>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.operationTimeUpdateEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.operationTimeUpdateEvent -= 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.OperationTimeHepler.operationTimeUpdateEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_operationServerCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Operation> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Operation>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Operation>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.operationServerCloseEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.operationServerCloseEvent -= 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.OperationTimeHepler.operationServerCloseEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_operationEndEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Operation, int> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Operation, int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Operation, int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.operationEndEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.operationEndEvent -= 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.OperationTimeHepler.operationEndEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_operationStartEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Operation, int> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Operation, int>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Operation, int>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.operationStartEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.operationStartEvent -= 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.OperationTimeHepler.operationStartEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_dayResetEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)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.dayResetEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.dayResetEvent -= 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.OperationTimeHepler.dayResetEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_operationAdvanceEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Operation> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Operation>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Operation>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.operationAdvanceEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.operationAdvanceEvent -= 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.OperationTimeHepler.operationAdvanceEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|