| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class RollingNumberTextWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(RollingNumberText), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("Change", Change);
- L.RegFunction("RollingNumberOver", RollingNumberOver);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("OnComplete", get_OnComplete, set_OnComplete);
- L.RegVar("needOver", get_needOver, set_needOver);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Change(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- RollingNumberText obj = (RollingNumberText)ToLua.CheckObject<RollingNumberText>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- obj.Change(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RollingNumberOver(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- RollingNumberText obj = (RollingNumberText)ToLua.CheckObject<RollingNumberText>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- obj.RollingNumberOver(arg0, arg1);
- 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_OnComplete(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RollingNumberText obj = (RollingNumberText)o;
- System.Action ret = obj.OnComplete;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnComplete on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_needOver(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RollingNumberText obj = (RollingNumberText)o;
- bool ret = obj.needOver;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index needOver on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_OnComplete(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RollingNumberText obj = (RollingNumberText)o;
- System.Action arg0 = (System.Action)ToLua.CheckDelegate<System.Action>(L, 2);
- obj.OnComplete = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnComplete on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_needOver(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- RollingNumberText obj = (RollingNumberText)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.needOver = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index needOver on a nil value");
- }
- }
- }
|