|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class EraseHandlerWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(EraseHandler), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("OnPointerDown", OnPointerDown);
- L.RegFunction("OnDrag", OnDrag);
- L.RegFunction("OnPointerUp", OnPointerUp);
- L.RegFunction("SetFinishPercent", SetFinishPercent);
- L.RegFunction("SetCamera", SetCamera);
- L.RegFunction("SetFinishCallBack", SetFinishCallBack);
- L.RegFunction("Reset", Reset);
- L.RegFunction("SetEraseArgs", SetEraseArgs);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("eraseFinishEvent", get_eraseFinishEvent, set_eraseFinishEvent);
- L.RegVar("mainCamera", get_mainCamera, set_mainCamera);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnPointerDown(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnPointerDown(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnDrag(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnDrag(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnPointerUp(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
- obj.OnPointerUp(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetFinishPercent(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.SetFinishPercent(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetCamera(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
- obj.SetCamera(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetFinishCallBack(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- System.Action arg0 = null;
- LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
-
- if (funcType2 != LuaTypes.LUA_TFUNCTION)
- {
- arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
- }
- else
- {
- LuaFunction func = ToLua.ToLuaFunction(L, 2);
- arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
- }
-
- obj.SetFinishCallBack(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Reset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- obj.Reset();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetEraseArgs(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- EraseHandler obj = (EraseHandler)ToLua.CheckObject(L, 1, typeof(EraseHandler));
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- obj.SetEraseArgs(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_eraseFinishEvent(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- EraseHandler obj = (EraseHandler)o;
- System.Action ret = obj.eraseFinishEvent;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index eraseFinishEvent on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mainCamera(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- EraseHandler obj = (EraseHandler)o;
- UnityEngine.Camera ret = obj.mainCamera;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mainCamera on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_eraseFinishEvent(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- EraseHandler obj = (EraseHandler)o;
- System.Action arg0 = null;
- LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
-
- if (funcType2 != LuaTypes.LUA_TFUNCTION)
- {
- arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
- }
- else
- {
- LuaFunction func = ToLua.ToLuaFunction(L, 2);
- arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
- }
-
- obj.eraseFinishEvent = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index eraseFinishEvent on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mainCamera(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- EraseHandler obj = (EraseHandler)o;
- UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
- obj.mainCamera = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mainCamera on a nil value" : e.Message);
- }
- }
- }
-
|