| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UnityEngine_EventSystems_PhysicsRaycasterWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UnityEngine.EventSystems.PhysicsRaycaster), typeof(UnityEngine.EventSystems.BaseRaycaster));
- L.RegFunction("Raycast", Raycast);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("eventCamera", get_eventCamera, null);
- L.RegVar("depth", get_depth, null);
- L.RegVar("finalEventMask", get_finalEventMask, null);
- L.RegVar("eventMask", get_eventMask, set_eventMask);
- L.RegVar("maxRayIntersections", get_maxRayIntersections, set_maxRayIntersections);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Raycast(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)ToLua.CheckObject<UnityEngine.EventSystems.PhysicsRaycaster>(L, 1);
- UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject<UnityEngine.EventSystems.PointerEventData>(L, 2);
- System.Collections.Generic.List<UnityEngine.EventSystems.RaycastResult> arg1 = (System.Collections.Generic.List<UnityEngine.EventSystems.RaycastResult>)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List<UnityEngine.EventSystems.RaycastResult>));
- obj.Raycast(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_eventCamera(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- UnityEngine.Camera ret = obj.eventCamera;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventCamera on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_depth(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- int ret = obj.depth;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_finalEventMask(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- int ret = obj.finalEventMask;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index finalEventMask on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_eventMask(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- UnityEngine.LayerMask ret = obj.eventMask;
- ToLua.PushLayerMask(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventMask on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_maxRayIntersections(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- int ret = obj.maxRayIntersections;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxRayIntersections on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_eventMask(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- UnityEngine.LayerMask arg0 = ToLua.ToLayerMask(L, 2);
- obj.eventMask = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventMask on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_maxRayIntersections(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.maxRayIntersections = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxRayIntersections on a nil value");
- }
- }
- }
|