#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 SnxxzUIOSRedEnvelopeModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.OSRedEnvelopeModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 19, 20, 8);
|
|
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, "UpdateAchieveRedpoint", _m_UpdateAchieveRedpoint);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedpackRedpoint", _m_UpdateRedpackRedpoint);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOSRedAchieve", _m_TryGetOSRedAchieve);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanGetEnvelope", _m_CanGetEnvelope);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasSelfRedpack", _m_HasSelfRedpack);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasOtherRedpack", _m_HasOtherRedpack);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateOSRedEnvelope", _m_UpdateOSRedEnvelope);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestSendAchieveEnvelope", _m_RequestSendAchieveEnvelope);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareAchievement", _m_CompareAchievement);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareEnvelope", _m_CompareEnvelope);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FuncChangeEvent", _e_FuncChangeEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OSRedAchieveUpdateEvent", _e_OSRedAchieveUpdateEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OSRedEnvelopeUpdateEvent", _e_OSRedEnvelopeUpdateEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OSRedEnvelopeInfoEnvent", _e_OSRedEnvelopeInfoEnvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "JumpType", _g_get_JumpType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoOpen", _g_get_autoOpen);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_OSRedAchieves", _g_get_m_OSRedAchieves);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_OSRedAchieveDict", _g_get_m_OSRedAchieveDict);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_AllFuncs", _g_get_m_AllFuncs);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "openDays", _g_get_openDays);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "OSRedEnvelopeType", _g_get_OSRedEnvelopeType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "envelopeVoiceCD", _g_get_envelopeVoiceCD);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "addCounts", _g_get_addCounts);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalJadeGet", _g_get_totalJadeGet);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "getEnvelopeTimes", _g_get_getEnvelopeTimes);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "overTime", _g_get_overTime);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_RedAchieveRedpoint", _g_get_m_RedAchieveRedpoint);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_OpenServerGetRedpin", _g_get_m_OpenServerGetRedpin);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_OSRedEnvelopes", _g_get_m_OSRedEnvelopes);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "cacheAchievement", _g_get_cacheAchievement);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectType", _s_set_selectType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "JumpType", _s_set_JumpType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoOpen", _s_set_autoOpen);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "overTime", _s_set_overTime);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_RedAchieveRedpoint", _s_set_m_RedAchieveRedpoint);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_OpenServerGetRedpin", _s_set_m_OpenServerGetRedpin);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_OSRedEnvelopes", _s_set_m_OSRedEnvelopes);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "cacheAchievement", _s_set_cacheAchievement);
|
|
|
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.OSRedEnvelopeModel gen_ret = new Snxxz.UI.OSRedEnvelopeModel();
|
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.OSRedEnvelopeModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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_UpdateAchieveRedpoint(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.UpdateAchieveRedpoint( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateRedpackRedpoint(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
|
{
|
bool __checkVoice = LuaAPI.lua_toboolean(L, 2);
|
|
gen_to_be_invoked.UpdateRedpackRedpoint( __checkVoice );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 1)
|
{
|
|
gen_to_be_invoked.UpdateRedpackRedpoint( );
|
|
|
|
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.OSRedEnvelopeModel.UpdateRedpackRedpoint!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OnPlayerLoginOk(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OnPlayerLoginOk( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryGetOSRedAchieve(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __achieve = LuaAPI.xlua_tointeger(L, 2);
|
Snxxz.UI.OSRedEnvelopeModel.OSRedAchieve __osRedAchieve;
|
|
bool gen_ret = gen_to_be_invoked.TryGetOSRedAchieve( __achieve, out __osRedAchieve );
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
translator.Push(L, __osRedAchieve);
|
|
|
|
|
return 2;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CanGetEnvelope(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.CanGetEnvelope( );
|
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_HasSelfRedpack(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.HasSelfRedpack( );
|
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_HasOtherRedpack(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.HasOtherRedpack( );
|
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_UpdateOSRedEnvelope(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HAB24_tagMCOpenServerRedPacketInfo __pak = (HAB24_tagMCOpenServerRedPacketInfo)translator.GetObject(L, 2, typeof(HAB24_tagMCOpenServerRedPacketInfo));
|
|
gen_to_be_invoked.UpdateOSRedEnvelope( __pak );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RequestSendAchieveEnvelope(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __id = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RequestSendAchieveEnvelope( __id );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CompareAchievement(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _x = LuaAPI.xlua_tointeger(L, 2);
|
int _y = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.CompareAchievement( _x, _y );
|
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_CompareEnvelope(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _x = LuaAPI.xlua_tointeger(L, 2);
|
int _y = LuaAPI.xlua_tointeger(L, 3);
|
|
int gen_ret = gen_to_be_invoked.CompareEnvelope( _x, _y );
|
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 _g_get_selectType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_JumpType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.JumpType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_autoOpen(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoOpen);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_OSRedAchieves(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_OSRedAchieves);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_OSRedAchieveDict(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_OSRedAchieveDict);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_AllFuncs(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_AllFuncs);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_openDays(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.openDays);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_OSRedEnvelopeType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.OSRedEnvelopeType);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_envelopeVoiceCD(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.envelopeVoiceCD);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_addCounts(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.addCounts);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_totalJadeGet(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.totalJadeGet);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_getEnvelopeTimes(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.getEnvelopeTimes);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IsOpen(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpen);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_priorityOpen(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.priorityOpen);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IsAdvance(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_overTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.overTime);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_RedAchieveRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_RedAchieveRedpoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_OpenServerGetRedpin(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_OpenServerGetRedpin);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_OSRedEnvelopes(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_OSRedEnvelopes);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_cacheAchievement(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cacheAchievement);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_selectType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.selectType = 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_JumpType(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.JumpType = 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_autoOpen(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.autoOpen = 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_overTime(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
System.DateTime gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.overTime = 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_m_RedAchieveRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_RedAchieveRedpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_m_OpenServerGetRedpin(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_OpenServerGetRedpin = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_m_OSRedEnvelopes(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_OSRedEnvelopes = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_cacheAchievement(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.cacheAchievement = 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 _e_FuncChangeEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.FuncChangeEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.FuncChangeEvent -= 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.OSRedEnvelopeModel.FuncChangeEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_OSRedAchieveUpdateEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.OSRedAchieveUpdateEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.OSRedAchieveUpdateEvent -= 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.OSRedEnvelopeModel.OSRedAchieveUpdateEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_OSRedEnvelopeUpdateEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.OSRedEnvelopeUpdateEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.OSRedEnvelopeUpdateEvent -= 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.OSRedEnvelopeModel.OSRedEnvelopeUpdateEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_OSRedEnvelopeInfoEnvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.OSRedEnvelopeInfoEnvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.OSRedEnvelopeInfoEnvent -= 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.OSRedEnvelopeModel.OSRedEnvelopeInfoEnvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_onStateUpate(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.OSRedEnvelopeModel gen_to_be_invoked = (Snxxz.UI.OSRedEnvelopeModel)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.onStateUpate += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.onStateUpate -= 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.OSRedEnvelopeModel.onStateUpate!");
|
return 0;
|
}
|
|
|
|
}
|
}
|