#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 UnityEngineUIAnimationTriggersWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.UI.AnimationTriggers); Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalTrigger", _g_get_normalTrigger); Utils.RegisterFunc(L, Utils.GETTER_IDX, "highlightedTrigger", _g_get_highlightedTrigger); Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressedTrigger", _g_get_pressedTrigger); Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedTrigger", _g_get_selectedTrigger); Utils.RegisterFunc(L, Utils.GETTER_IDX, "disabledTrigger", _g_get_disabledTrigger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalTrigger", _s_set_normalTrigger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "highlightedTrigger", _s_set_highlightedTrigger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressedTrigger", _s_set_pressedTrigger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedTrigger", _s_set_selectedTrigger); Utils.RegisterFunc(L, Utils.SETTER_IDX, "disabledTrigger", _s_set_disabledTrigger); 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) { var gen_ret = new UnityEngine.UI.AnimationTriggers(); 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 UnityEngine.UI.AnimationTriggers constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_normalTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.normalTrigger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_highlightedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.highlightedTrigger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_pressedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.pressedTrigger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_selectedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.selectedTrigger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_disabledTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.disabledTrigger); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_normalTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); gen_to_be_invoked.normalTrigger = 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_highlightedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); gen_to_be_invoked.highlightedTrigger = 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_pressedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); gen_to_be_invoked.pressedTrigger = 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_selectedTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); gen_to_be_invoked.selectedTrigger = 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_disabledTrigger(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.AnimationTriggers gen_to_be_invoked = (UnityEngine.UI.AnimationTriggers)translator.FastGetCSObj(L, 1); gen_to_be_invoked.disabledTrigger = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }