| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | public class TestMonobehaviour : MonoBehaviour |
| | | { |
| | |
| | | { |
| | | if (Input.GetKeyDown(KeyCode.F)) |
| | | { |
| | | CSharpCallLua.OnRecieveLuaNetPackage(41743, new byte[] { 131 }); |
| | | WindowCenter.Instance.Open("AbyssWin"); |
| | | } |
| | | |
| | | if (Input.GetKeyDown(KeyCode.G)) |
| | | { |
| | | WindowCenter.Instance.Open("TestWin"); |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | #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 ButtonExWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(ButtonEx); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 2, 6, 5); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ableTimeChangeEvent", _e_ableTimeChangeEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ableTime", _g_get_ableTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "interval", _g_get_interval); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "customPositiveSound", _g_get_customPositiveSound); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "customNegativeSound", _g_get_customNegativeSound); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "positiveSound", _g_get_positiveSound); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "negativeSound", _g_get_negativeSound); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "interval", _s_set_interval); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "customPositiveSound", _s_set_customPositiveSound); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "customNegativeSound", _s_set_customNegativeSound); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "positiveSound", _s_set_positiveSound); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "negativeSound", _s_set_negativeSound); |
| | | |
| | | |
| | | 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) |
| | | { |
| | | |
| | | ButtonEx gen_ret = new ButtonEx(); |
| | | 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 ButtonEx constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPointerClick(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); |
| | | |
| | | gen_to_be_invoked.OnPointerClick( _eventData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ableTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ableTime); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_interval(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushnumber(L, gen_to_be_invoked.interval); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_customPositiveSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.customPositiveSound); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_customNegativeSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.customNegativeSound); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_positiveSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.positiveSound); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_negativeSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.negativeSound); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_interval(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.interval = (float)LuaAPI.lua_tonumber(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_customPositiveSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.customPositiveSound = 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_customNegativeSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.customNegativeSound = 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_positiveSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.positiveSound = 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_negativeSound(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.negativeSound = 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_ableTimeChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | ButtonEx gen_to_be_invoked = (ButtonEx)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.ableTimeChangeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.ableTimeChangeEvent -= 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 ButtonEx.ableTimeChangeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5ebe2cf7d554b704fb3f260faa69be32 |
| | | timeCreated: 1540818075 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a3c658a0f18fdef49b07e6be215fd829 |
| | | timeCreated: 1540804750 |
| | | timeCreated: 1540819023 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(LuaWindow); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReLoadLua", _m_ReLoadLua); |
| | | |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "filePath", _g_get_filePath); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "filePath", _s_set_filePath); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_filePath(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LuaWindow gen_to_be_invoked = (LuaWindow)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.filePath); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_filePath(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LuaWindow gen_to_be_invoked = (LuaWindow)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.filePath = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.TalentModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 18, 7, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 19, 7, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectSkillEvent", _e_selectSkillEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "talentPointUpdate", _e_talentPointUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "talentSkillUpdate", _e_talentSkillUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "talentSkillLevelUp", _e_talentSkillLevelUp); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectSeries", _g_get_selectSeries); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectTalentType", _g_get_selectTalentType); |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_talentSkillLevelUp(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.TalentModel gen_to_be_invoked = (Snxxz.UI.TalentModel)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.talentSkillLevelUp += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.talentSkillLevelUp -= 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.TalentModel.talentSkillLevelUp!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.WheelOfFortuneModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 6, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 9, 9, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTheGrid", _m_GetTheGrid); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "WheelOfFortuneUpdate", _e_WheelOfFortuneUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Lattice", _g_get_Lattice); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Lattice", _g_get_Lattice); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Number", _g_get_Number); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "NeedJade", _g_get_NeedJade); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AngleSave", _g_get_AngleSave); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WheelOfFortuneModel gen_to_be_invoked = (Snxxz.UI.WheelOfFortuneModel)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_IsAdvance(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WheelOfFortuneModel gen_to_be_invoked = (Snxxz.UI.WheelOfFortuneModel)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_priorityOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WheelOfFortuneModel gen_to_be_invoked = (Snxxz.UI.WheelOfFortuneModel)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_Lattice(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | 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.WheelOfFortuneModel gen_to_be_invoked = (Snxxz.UI.WheelOfFortuneModel)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.WheelOfFortuneModel.onStateUpate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UI3DModelExhibition), SnxxzUIUI3DModelExhibitionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ButtonEx), ButtonExWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(EffectMgr), EffectMgrWrap.__Register); |
| | | |
| | | |
| | |
| | | <type fullname="Snxxz.UI.ItemBehaviour" preserve="all"/> |
| | | <type fullname="TimeDownMgr" preserve="all"/> |
| | | <type fullname="Snxxz.UI.UI3DModelExhibition" preserve="all"/> |
| | | <type fullname="ButtonEx" preserve="all"/> |
| | | <type fullname="EffectMgr" preserve="all"/> |
| | | <type fullname="TimeMgr" preserve="all"/> |
| | | <type fullname="UIEffect" preserve="all"/> |