#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 SnxxzUINewBieCenterWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.NewBieCenter);
|
Utils.BeginObjectRegister(type, L, translator, 0, 17, 4, 2);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGuideCompleted", _m_IsGuideCompleted);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetGuideRecords", _m_ResetGuideRecords);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckNewBieGuides", _m_CheckNewBieGuides);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartNewBieGuide", _m_StartNewBieGuide);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FinishNewBieGuide", _m_FinishNewBieGuide);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveNewBieGuide", _m_RemoveNewBieGuide);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FinishCurrentGuideWithoutCloseWin", _m_FinishCurrentGuideWithoutCloseWin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReportGuideStepComplete", _m_ReportGuideStepComplete);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterTrigger", _m_RegisterTrigger);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompleteAllGuides", _m_CompleteAllGuides);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAllGuides", _m_ResetAllGuides);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetGuide", _m_ResetGuide);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "guideStepChangeEvent", _e_guideStepChangeEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "guideBeginEvent", _e_guideBeginEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "guideCompletedEvent", _e_guideCompletedEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentGuide", _g_get_currentGuide);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "guideStep", _g_get_guideStep);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "inGuiding", _g_get_inGuiding);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "completeGuidesBuf", _g_get_completeGuidesBuf);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "currentGuide", _s_set_currentGuide);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "completeGuidesBuf", _s_set_completeGuidesBuf);
|
|
|
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.NewBieCenter gen_ret = new Snxxz.UI.NewBieCenter();
|
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.NewBieCenter constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)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.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)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_IsGuideCompleted(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _guideId = LuaAPI.xlua_tointeger(L, 2);
|
|
bool gen_ret = gen_to_be_invoked.IsGuideCompleted( _guideId );
|
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_ResetGuideRecords(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
uint[] __guideRecords = (uint[])translator.GetObject(L, 2, typeof(uint[]));
|
|
gen_to_be_invoked.ResetGuideRecords( __guideRecords );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CheckNewBieGuides(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int[] __guides = (int[])translator.GetObject(L, 2, typeof(int[]));
|
|
gen_to_be_invoked.CheckNewBieGuides( __guides );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_StartNewBieGuide(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __id = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.StartNewBieGuide( __id );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_FinishNewBieGuide(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __id = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.FinishNewBieGuide( __id );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RemoveNewBieGuide(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __id = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.RemoveNewBieGuide( __id );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_FinishCurrentGuideWithoutCloseWin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.FinishCurrentGuideWithoutCloseWin( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ReportGuideStepComplete(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __step = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.ReportGuideStepComplete( __step );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_RegisterTrigger(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int[] __guides = (int[])translator.GetObject(L, 2, typeof(int[]));
|
Snxxz.UI.Window __window = (Snxxz.UI.Window)translator.GetObject(L, 3, typeof(Snxxz.UI.Window));
|
|
gen_to_be_invoked.RegisterTrigger( __guides, __window );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_CompleteAllGuides(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.CompleteAllGuides( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ResetAllGuides(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ResetAllGuides( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ResetGuide(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __guide = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.ResetGuide( __guide );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_currentGuide(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentGuide);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_guideStep(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.guideStep);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_inGuiding(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.inGuiding);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_completeGuidesBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.completeGuidesBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_currentGuide(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.currentGuide = 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_completeGuidesBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.completeGuidesBuf = (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 _e_guideStepChangeEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)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.guideStepChangeEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.guideStepChangeEvent -= 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.NewBieCenter.guideStepChangeEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_guideBeginEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)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.guideBeginEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.guideBeginEvent -= 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.NewBieCenter.guideBeginEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_guideCompletedEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.NewBieCenter gen_to_be_invoked = (Snxxz.UI.NewBieCenter)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.guideCompletedEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.guideCompletedEvent -= 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.NewBieCenter.guideCompletedEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|