#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 KnapSackEventMgrWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(KnapSackEventMgr);
|
Utils.BeginObjectRegister(type, L, translator, 0, 6, 9, 9);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEquipWinTempObj", _m_SetEquipWinTempObj);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWingsWinTempObj", _m_SetWingsWinTempObj);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGuardWinTempObj", _m_SetGuardWinTempObj);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "HideItemPopWin", _m_HideItemPopWin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenBagWin", _m_OpenBagWin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseBagWin", _m_CloseBagWin);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AddEquipWinTempObjEvent", _g_get_AddEquipWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AddWingsWinTempObjEvent", _g_get_AddWingsWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AddGuardWinTempObjEvent", _g_get_AddGuardWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideGuardWinEvent", _g_get_HideGuardWinEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideEquipWinEvent", _g_get_HideEquipWinEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideWingsWinEvent", _g_get_HideWingsWinEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideItemWinEvent", _g_get_HideItemWinEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "OpenBagWinEvent", _g_get_OpenBagWinEvent);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CloseBagWinEvent", _g_get_CloseBagWinEvent);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AddEquipWinTempObjEvent", _s_set_AddEquipWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AddWingsWinTempObjEvent", _s_set_AddWingsWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AddGuardWinTempObjEvent", _s_set_AddGuardWinTempObjEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "HideGuardWinEvent", _s_set_HideGuardWinEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "HideEquipWinEvent", _s_set_HideEquipWinEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "HideWingsWinEvent", _s_set_HideWingsWinEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "HideItemWinEvent", _s_set_HideItemWinEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "OpenBagWinEvent", _s_set_OpenBagWinEvent);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "CloseBagWinEvent", _s_set_CloseBagWinEvent);
|
|
|
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)
|
{
|
|
KnapSackEventMgr gen_ret = new KnapSackEventMgr();
|
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 KnapSackEventMgr constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetEquipWinTempObj(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
gen_to_be_invoked.SetEquipWinTempObj( _go );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetWingsWinTempObj(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
gen_to_be_invoked.SetWingsWinTempObj( _go );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetGuardWinTempObj(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
gen_to_be_invoked.SetGuardWinTempObj( _go );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_HideItemPopWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.HideItemPopWin( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OpenBagWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.OpenBagWin( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CloseBagWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.CloseBagWin( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_AddEquipWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.AddEquipWinTempObjEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_AddWingsWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.AddWingsWinTempObjEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_AddGuardWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.AddGuardWinTempObjEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_HideGuardWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.HideGuardWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_HideEquipWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.HideEquipWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_HideWingsWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.HideWingsWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_HideItemWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.HideItemWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_OpenBagWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.OpenBagWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_CloseBagWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.CloseBagWinEvent);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_AddEquipWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.AddEquipWinTempObjEvent = translator.GetDelegate<System.Action<UnityEngine.GameObject>>(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_AddWingsWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.AddWingsWinTempObjEvent = translator.GetDelegate<System.Action<UnityEngine.GameObject>>(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_AddGuardWinTempObjEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.AddGuardWinTempObjEvent = translator.GetDelegate<System.Action<UnityEngine.GameObject>>(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_HideGuardWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.HideGuardWinEvent = 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 _s_set_HideEquipWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.HideEquipWinEvent = 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 _s_set_HideWingsWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.HideWingsWinEvent = 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 _s_set_HideItemWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.HideItemWinEvent = 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 _s_set_OpenBagWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.OpenBagWinEvent = 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 _s_set_CloseBagWinEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
KnapSackEventMgr gen_to_be_invoked = (KnapSackEventMgr)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.CloseBagWinEvent = translator.GetDelegate<System.Action>(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|