| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class RolRectTransformWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(RolRectTransform), typeof(UnityEngine.MonoBehaviour), "RolRectTransform");
- L.RegFunction("SetMaxSpeed", SetMaxSpeed);
- L.RegFunction("ClearNewRangeSpeed", ClearNewRangeSpeed);
- L.RegFunction("AddNewRangeSpeed", AddNewRangeSpeed);
- L.RegFunction("Reset", Reset);
- L.RegFunction("Run", Run);
- L.RegFunction("CalStopTime", CalStopTime);
- L.RegFunction("Stop", Stop);
- L.RegFunction("SetAngle", SetAngle);
- L.RegFunction("SetStopIndex", SetStopIndex);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("mSelectAction", get_mSelectAction, set_mSelectAction);
- L.RegVar("mFinishAction", get_mFinishAction, set_mFinishAction);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetMaxSpeed(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.SetMaxSpeed(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearNewRangeSpeed(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- obj.ClearNewRangeSpeed();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddNewRangeSpeed(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 5);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
- float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
- obj.AddNewRangeSpeed(arg0, arg1, arg2, arg3);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Reset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- obj.Reset();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Run(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.Run(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CalStopTime(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- obj.CalStopTime();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Stop(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- obj.Stop();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetAngle(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
- obj.SetAngle(arg0, arg1, arg2);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetStopIndex(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.SetStopIndex(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mSelectAction(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RolRectTransform obj = (RolRectTransform)o;
- System.Action<int> ret = obj.mSelectAction;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSelectAction on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mFinishAction(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RolRectTransform obj = (RolRectTransform)o;
- System.Action<int> ret = obj.mFinishAction;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mFinishAction on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mSelectAction(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RolRectTransform obj = (RolRectTransform)o;
- System.Action<int> arg0 = (System.Action<int>)ToLua.CheckDelegate<System.Action<int>>(L, 2);
- obj.mSelectAction = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSelectAction on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mFinishAction(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RolRectTransform obj = (RolRectTransform)o;
- System.Action<int> arg0 = (System.Action<int>)ToLua.CheckDelegate<System.Action<int>>(L, 2);
- obj.mFinishAction = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mFinishAction on a nil value");
- }
- }
- }
|