//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(L, 1); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2); System.Collections.Generic.List arg1 = (System.Collections.Generic.List)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List)); 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"); } } }