#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 SnxxzUIWindowCenterWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.WindowCenter);
|
Utils.BeginObjectRegister(type, L, translator, 0, 19, 3, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenFromLocal", _m_OpenFromLocal);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Open", _m_Open);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenWithoutAnimation", _m_OpenWithoutAnimation);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Close", _m_Close);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAll", _m_GetAll);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseAll", _m_CloseAll);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseOthers", _m_CloseOthers);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestoryWinsByStage", _m_DestoryWinsByStage);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroyWin", _m_DestroyWin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAssetBundle", _m_UnLoadAssetBundle);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOpen", _m_IsOpen);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExitAnyFullScreenOrMaskWin", _m_ExitAnyFullScreenOrMaskWin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExitAnyFullScreenOrMaskWinLEqual", _m_ExitAnyFullScreenOrMaskWinLEqual);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowBeforeOpenEvent", _e_windowBeforeOpenEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowAfterOpenEvent", _e_windowAfterOpenEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowBeforeCloseEvent", _e_windowBeforeCloseEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowAfterCloseEvent", _e_windowAfterCloseEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "jumpWindowCloseEvent", _e_jumpWindowCloseEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "uiRoot", _g_get_uiRoot);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "asyncLoad", _g_get_asyncLoad);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPreCreating", _g_get_isPreCreating);
|
|
|
|
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.WindowCenter gen_ret = new Snxxz.UI.WindowCenter();
|
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.WindowCenter constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OpenFromLocal(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.OpenFromLocal( __name );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Open(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
bool __forceSync = LuaAPI.lua_toboolean(L, 3);
|
int __functionalOrder = LuaAPI.xlua_tointeger(L, 4);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.Open( __name, __forceSync, __functionalOrder );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
bool __forceSync = LuaAPI.lua_toboolean(L, 3);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.Open( __name, __forceSync );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.Open( __name );
|
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.WindowCenter.Open!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_OpenWithoutAnimation(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.OpenWithoutAnimation( __name );
|
translator.Push(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_Get(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __window = LuaAPI.lua_tostring(L, 2);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.Get( __window );
|
translator.Push(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_Close(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
Snxxz.UI.Window gen_ret = gen_to_be_invoked.Close( __name );
|
translator.Push(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_GetAll(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
System.Collections.Generic.List<string> gen_ret = gen_to_be_invoked.GetAll( );
|
translator.Push(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_CloseAll(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.WindowCenter.CloseAllIgnoreType>(L, 2))
|
{
|
Snxxz.UI.WindowCenter.CloseAllIgnoreType __ignoreType;translator.Get(L, 2, out __ignoreType);
|
|
gen_to_be_invoked.CloseAll( __ignoreType );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 1)
|
{
|
|
gen_to_be_invoked.CloseAll( );
|
|
|
|
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.WindowCenter.CloseAll!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CloseOthers(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
System.Collections.Generic.List<string> __windowNames = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
|
Snxxz.UI.WindowCenter.CloseAllIgnoreType __ignoreType;translator.Get(L, 3, out __ignoreType);
|
|
gen_to_be_invoked.CloseOthers( __windowNames, __ignoreType );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_DestoryWinsByStage(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.WindowCenter.WindowStage __windowStage;translator.Get(L, 2, out __windowStage);
|
|
gen_to_be_invoked.DestoryWinsByStage( __windowStage );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_DestroyWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.DestroyWin( __name );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UnLoadAssetBundle(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
Snxxz.UI.WindowCenter.WindowStage __windowStage;translator.Get(L, 2, out __windowStage);
|
|
gen_to_be_invoked.UnLoadAssetBundle( __windowStage );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_IsOpen(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.IsOpen( __name );
|
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_ExitAnyFullScreenOrMaskWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
bool gen_ret = gen_to_be_invoked.ExitAnyFullScreenOrMaskWin( );
|
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_ExitAnyFullScreenOrMaskWinLEqual(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
WindowType __windowType;translator.Get(L, 2, out __windowType);
|
|
bool gen_ret = gen_to_be_invoked.ExitAnyFullScreenOrMaskWinLEqual( __windowType );
|
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_uiRoot(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.uiRoot);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_asyncLoad(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.asyncLoad);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_isPreCreating(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPreCreating);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_windowBeforeOpenEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.windowBeforeOpenEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.windowBeforeOpenEvent -= 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.WindowCenter.windowBeforeOpenEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_windowAfterOpenEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.windowAfterOpenEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.windowAfterOpenEvent -= 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.WindowCenter.windowAfterOpenEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_windowBeforeCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.windowBeforeCloseEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.windowBeforeCloseEvent -= 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.WindowCenter.windowBeforeCloseEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_windowAfterCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.windowAfterCloseEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.windowAfterCloseEvent -= 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.WindowCenter.windowAfterCloseEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_jumpWindowCloseEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1);
|
System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.jumpWindowCloseEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.jumpWindowCloseEvent -= 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.WindowCenter.jumpWindowCloseEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|