#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; using DG.Tweening; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UnityEngineComponentWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.Component); Utils.BeginObjectRegister(type, L, translator, 0, 23, 3, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetComponent", _m_TryGetComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInChildren", _m_GetComponentsInChildren); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInParent", _m_GetComponentInParent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInParent", _m_GetComponentsInParent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponents", _m_GetComponents); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTag", _m_CompareTag); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessageUpwards", _m_SendMessageUpwards); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOComplete", _m_DOComplete); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOKill", _m_DOKill); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFlip", _m_DOFlip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGoto", _m_DOGoto); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPause", _m_DOPause); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlay", _m_DOPlay); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayBackwards", _m_DOPlayBackwards); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayForward", _m_DOPlayForward); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORestart", _m_DORestart); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORewind", _m_DORewind); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOSmoothRewind", _m_DOSmoothRewind); Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTogglePause", _m_DOTogglePause); Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); Utils.RegisterFunc(L, Utils.GETTER_IDX, "tag", _g_get_tag); Utils.RegisterFunc(L, Utils.SETTER_IDX, "tag", _s_set_tag); 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.Component(); 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.Component constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponent( _type ); 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 _type = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.GetComponent( _type ); 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.Component.GetComponent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); UnityEngine.Component _component; var gen_ret = gen_to_be_invoked.TryGetComponent( _type, out _component ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _component); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentInChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentInChildren( _t ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentInChildren( _t, _includeInactive ); 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.Component.GetComponentInChildren!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentsInChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _t ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _t, _includeInactive ); 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.Component.GetComponentsInChildren!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentInParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentInParent( _t ); 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_GetComponentsInParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentsInParent( _t ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentsInParent( _t, _includeInactive ); 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.Component.GetComponentsInParent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponents(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponents( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); gen_to_be_invoked.GetComponents( _type, _results ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponents!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CompareTag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { string _tag = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.CompareTag( _tag ); 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_SendMessageUpwards(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SendMessageUpwards( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.SendMessageUpwards( _methodName, _value ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.SendMessageUpwards( _methodName, _options ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.SendMessageUpwards( _methodName, _value, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.SendMessageUpwards!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SendMessage( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.SendMessage( _methodName, _value ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.SendMessage( _methodName, _options ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.SendMessage( _methodName, _value, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.SendMessage!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_BroadcastMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.BroadcastMessage( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _parameter = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.BroadcastMessage( _methodName, _parameter ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.BroadcastMessage( _methodName, _options ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _parameter = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.BroadcastMessage( _methodName, _parameter, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.BroadcastMessage!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DOComplete(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _withCallbacks = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.DOComplete( _withCallbacks ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 1) { var gen_ret = gen_to_be_invoked.DOComplete( ); LuaAPI.xlua_pushinteger(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.Component.DOComplete!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DOKill(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _complete = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.DOKill( _complete ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 1) { var gen_ret = gen_to_be_invoked.DOKill( ); LuaAPI.xlua_pushinteger(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.Component.DOKill!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DOFlip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOFlip( ); LuaAPI.xlua_pushinteger(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_DOGoto(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { float _to = (float)LuaAPI.lua_tonumber(L, 2); bool _andPlay = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.DOGoto( _to, _andPlay ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { float _to = (float)LuaAPI.lua_tonumber(L, 2); var gen_ret = gen_to_be_invoked.DOGoto( _to ); LuaAPI.xlua_pushinteger(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.Component.DOGoto!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DOPause(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOPause( ); LuaAPI.xlua_pushinteger(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_DOPlay(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOPlay( ); LuaAPI.xlua_pushinteger(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_DOPlayBackwards(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOPlayBackwards( ); LuaAPI.xlua_pushinteger(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_DOPlayForward(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOPlayForward( ); LuaAPI.xlua_pushinteger(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_DORestart(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _includeDelay = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.DORestart( _includeDelay ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 1) { var gen_ret = gen_to_be_invoked.DORestart( ); LuaAPI.xlua_pushinteger(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.Component.DORestart!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DORewind(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _includeDelay = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.DORewind( _includeDelay ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 1) { var gen_ret = gen_to_be_invoked.DORewind( ); LuaAPI.xlua_pushinteger(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.Component.DORewind!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_DOSmoothRewind(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOSmoothRewind( ); LuaAPI.xlua_pushinteger(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_DOTogglePause(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.DOTogglePause( ); LuaAPI.xlua_pushinteger(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_transform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.transform); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_gameObject(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.gameObject); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_tag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.tag); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_tag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); gen_to_be_invoked.tag = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }