#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 InGameDownLoadWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(InGameDownLoad);
|
Utils.BeginObjectRegister(type, L, translator, 0, 11, 14, 6);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignTasks", _m_AssignTasks);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseRewardConfig", _m_ParseRewardConfig);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRewardInfo", _m_UpdateRewardInfo);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestDownLoadReward", _m_RequestDownLoadReward);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryDownLoad", _m_TryDownLoad);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartDownLoad", _m_StartDownLoad);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckDominantDownLoad", _m_CheckDominantDownLoad);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHighLevelPlayer", _m_IsHighLevelPlayer);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "downLoadStateChangeEvent", _e_downLoadStateChangeEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "dominantDownLoadEvent", _e_dominantDownLoadEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "progress", _g_get_progress);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDone", _g_get_isDone);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "showDownLoadedSize", _g_get_showDownLoadedSize);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "showTotalSize", _g_get_showTotalSize);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "showTotalCount", _g_get_showTotalCount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "showOkCount", _g_get_showOkCount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dominantState", _g_get_dominantState);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "state", _g_get_state);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasReward", _g_get_hasReward);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "completeDownLoadAccount", _g_get_completeDownLoadAccount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "simulateWifi", _g_get_simulateWifi);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "inGameDownLoadAllow", _g_get_inGameDownLoadAllow);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rewards", _g_get_rewards);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "downLoadRedpoint", _g_get_downLoadRedpoint);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "state", _s_set_state);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "completeDownLoadAccount", _s_set_completeDownLoadAccount);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "simulateWifi", _s_set_simulateWifi);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "inGameDownLoadAllow", _s_set_inGameDownLoadAllow);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rewards", _s_set_rewards);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "downLoadRedpoint", _s_set_downLoadRedpoint);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BYTE_PER_KILOBYTE", InGameDownLoad.BYTE_PER_KILOBYTE);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BYTE_PER_MILLIONBYTE", InGameDownLoad.BYTE_PER_MILLIONBYTE);
|
|
|
|
|
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)
|
{
|
|
InGameDownLoad gen_ret = new InGameDownLoad();
|
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 InGameDownLoad constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_AssignTasks(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
System.Collections.Generic.List<AssetVersion> __tasks = (System.Collections.Generic.List<AssetVersion>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<AssetVersion>));
|
System.Action __onDownLoadOk = translator.GetDelegate<System.Action>(L, 3);
|
|
gen_to_be_invoked.AssignTasks( __tasks, __onDownLoadOk );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ParseRewardConfig(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ParseRewardConfig( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UpdateRewardInfo(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
HA319_tagMCPackDownloadRecord __package = (HA319_tagMCPackDownloadRecord)translator.GetObject(L, 2, typeof(HA319_tagMCPackDownloadRecord));
|
|
gen_to_be_invoked.UpdateRewardInfo( __package );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RequestDownLoadReward(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
bool __manual = LuaAPI.lua_toboolean(L, 2);
|
|
gen_to_be_invoked.RequestDownLoadReward( __manual );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_TryDownLoad(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
InGameDownLoad.Dominant __dominant;translator.Get(L, 2, out __dominant);
|
|
gen_to_be_invoked.TryDownLoad( __dominant );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_StartDownLoad(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.StartDownLoad( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Pause(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Pause( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckDominantDownLoad(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.CheckDominantDownLoad( );
|
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_IsHighLevelPlayer(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.IsHighLevelPlayer( );
|
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 _g_get_progress(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.progress);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_isDone(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDone);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_showDownLoadedSize(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushint64(L, gen_to_be_invoked.showDownLoadedSize);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_showTotalSize(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushint64(L, gen_to_be_invoked.showTotalSize);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_showTotalCount(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.showTotalCount);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_showOkCount(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.showOkCount);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_dominantState(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.dominantState);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_state(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.state);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_hasReward(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasReward);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_completeDownLoadAccount(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.completeDownLoadAccount);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_simulateWifi(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.simulateWifi);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_inGameDownLoadAllow(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.inGameDownLoadAllow);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_rewards(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.rewards);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_downLoadRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.downLoadRedpoint);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_state(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
InGameDownLoad.State gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.state = 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_completeDownLoadAccount(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.completeDownLoadAccount = LuaAPI.lua_tostring(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_simulateWifi(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.simulateWifi = 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_inGameDownLoadAllow(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.inGameDownLoadAllow = 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_rewards(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.rewards = (System.Collections.Generic.List<InGameDownLoad.Reward>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<InGameDownLoad.Reward>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_downLoadRedpoint(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.downLoadRedpoint = (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 _e_downLoadStateChangeEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
System.Action<InGameDownLoad.State> gen_delegate = translator.GetDelegate<System.Action<InGameDownLoad.State>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<InGameDownLoad.State>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.downLoadStateChangeEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.downLoadStateChangeEvent -= 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 InGameDownLoad.downLoadStateChangeEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_dominantDownLoadEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
InGameDownLoad gen_to_be_invoked = (InGameDownLoad)translator.FastGetCSObj(L, 1);
|
System.Action<InGameDownLoad.Dominant> gen_delegate = translator.GetDelegate<System.Action<InGameDownLoad.Dominant>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<InGameDownLoad.Dominant>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.dominantDownLoadEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.dominantDownLoadEvent -= 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 InGameDownLoad.dominantDownLoadEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|