UnityEngine_EventSystems_PhysicsRaycasterWrap.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_EventSystems_PhysicsRaycasterWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.EventSystems.PhysicsRaycaster), typeof(UnityEngine.EventSystems.BaseRaycaster));
  9. L.RegFunction("Raycast", Raycast);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("eventCamera", get_eventCamera, null);
  13. L.RegVar("depth", get_depth, null);
  14. L.RegVar("finalEventMask", get_finalEventMask, null);
  15. L.RegVar("eventMask", get_eventMask, set_eventMask);
  16. L.RegVar("maxRayIntersections", get_maxRayIntersections, set_maxRayIntersections);
  17. L.EndClass();
  18. }
  19. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  20. static int Raycast(IntPtr L)
  21. {
  22. try
  23. {
  24. ToLua.CheckArgsCount(L, 3);
  25. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)ToLua.CheckObject<UnityEngine.EventSystems.PhysicsRaycaster>(L, 1);
  26. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject<UnityEngine.EventSystems.PointerEventData>(L, 2);
  27. 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>));
  28. obj.Raycast(arg0, arg1);
  29. return 0;
  30. }
  31. catch (Exception e)
  32. {
  33. return LuaDLL.toluaL_exception(L, e);
  34. }
  35. }
  36. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  37. static int op_Equality(IntPtr L)
  38. {
  39. try
  40. {
  41. ToLua.CheckArgsCount(L, 2);
  42. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  43. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  44. bool o = arg0 == arg1;
  45. LuaDLL.lua_pushboolean(L, o);
  46. return 1;
  47. }
  48. catch (Exception e)
  49. {
  50. return LuaDLL.toluaL_exception(L, e);
  51. }
  52. }
  53. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  54. static int get_eventCamera(IntPtr L)
  55. {
  56. object o = null;
  57. try
  58. {
  59. o = ToLua.ToObject(L, 1);
  60. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  61. UnityEngine.Camera ret = obj.eventCamera;
  62. ToLua.PushSealed(L, ret);
  63. return 1;
  64. }
  65. catch(Exception e)
  66. {
  67. return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventCamera on a nil value");
  68. }
  69. }
  70. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  71. static int get_depth(IntPtr L)
  72. {
  73. object o = null;
  74. try
  75. {
  76. o = ToLua.ToObject(L, 1);
  77. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  78. int ret = obj.depth;
  79. LuaDLL.lua_pushinteger(L, ret);
  80. return 1;
  81. }
  82. catch(Exception e)
  83. {
  84. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value");
  85. }
  86. }
  87. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  88. static int get_finalEventMask(IntPtr L)
  89. {
  90. object o = null;
  91. try
  92. {
  93. o = ToLua.ToObject(L, 1);
  94. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  95. int ret = obj.finalEventMask;
  96. LuaDLL.lua_pushinteger(L, ret);
  97. return 1;
  98. }
  99. catch(Exception e)
  100. {
  101. return LuaDLL.toluaL_exception(L, e, o, "attempt to index finalEventMask on a nil value");
  102. }
  103. }
  104. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  105. static int get_eventMask(IntPtr L)
  106. {
  107. object o = null;
  108. try
  109. {
  110. o = ToLua.ToObject(L, 1);
  111. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  112. UnityEngine.LayerMask ret = obj.eventMask;
  113. ToLua.PushLayerMask(L, ret);
  114. return 1;
  115. }
  116. catch(Exception e)
  117. {
  118. return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventMask on a nil value");
  119. }
  120. }
  121. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  122. static int get_maxRayIntersections(IntPtr L)
  123. {
  124. object o = null;
  125. try
  126. {
  127. o = ToLua.ToObject(L, 1);
  128. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  129. int ret = obj.maxRayIntersections;
  130. LuaDLL.lua_pushinteger(L, ret);
  131. return 1;
  132. }
  133. catch(Exception e)
  134. {
  135. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxRayIntersections on a nil value");
  136. }
  137. }
  138. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  139. static int set_eventMask(IntPtr L)
  140. {
  141. object o = null;
  142. try
  143. {
  144. o = ToLua.ToObject(L, 1);
  145. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  146. UnityEngine.LayerMask arg0 = ToLua.ToLayerMask(L, 2);
  147. obj.eventMask = arg0;
  148. return 0;
  149. }
  150. catch(Exception e)
  151. {
  152. return LuaDLL.toluaL_exception(L, e, o, "attempt to index eventMask on a nil value");
  153. }
  154. }
  155. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  156. static int set_maxRayIntersections(IntPtr L)
  157. {
  158. object o = null;
  159. try
  160. {
  161. o = ToLua.ToObject(L, 1);
  162. UnityEngine.EventSystems.PhysicsRaycaster obj = (UnityEngine.EventSystems.PhysicsRaycaster)o;
  163. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  164. obj.maxRayIntersections = arg0;
  165. return 0;
  166. }
  167. catch(Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxRayIntersections on a nil value");
  170. }
  171. }
  172. }