源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

214 lines
5.0 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_CapsuleColliderWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.CapsuleCollider), typeof(UnityEngine.Collider));
  9. L.RegFunction("New", _CreateUnityEngine_CapsuleCollider);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("center", get_center, set_center);
  13. L.RegVar("radius", get_radius, set_radius);
  14. L.RegVar("height", get_height, set_height);
  15. L.RegVar("direction", get_direction, set_direction);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int _CreateUnityEngine_CapsuleCollider(IntPtr L)
  20. {
  21. try
  22. {
  23. int count = LuaDLL.lua_gettop(L);
  24. if (count == 0)
  25. {
  26. UnityEngine.CapsuleCollider obj = new UnityEngine.CapsuleCollider();
  27. ToLua.Push(L, obj);
  28. return 1;
  29. }
  30. else
  31. {
  32. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.CapsuleCollider.New");
  33. }
  34. }
  35. catch(Exception e)
  36. {
  37. return LuaDLL.toluaL_exception(L, e);
  38. }
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int op_Equality(IntPtr L)
  42. {
  43. try
  44. {
  45. ToLua.CheckArgsCount(L, 2);
  46. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  47. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  48. bool o = arg0 == arg1;
  49. LuaDLL.lua_pushboolean(L, o);
  50. return 1;
  51. }
  52. catch(Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e);
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int get_center(IntPtr L)
  59. {
  60. object o = null;
  61. try
  62. {
  63. o = ToLua.ToObject(L, 1);
  64. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  65. UnityEngine.Vector3 ret = obj.center;
  66. ToLua.Push(L, ret);
  67. return 1;
  68. }
  69. catch(Exception e)
  70. {
  71. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index center on a nil value" : e.Message);
  72. }
  73. }
  74. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  75. static int get_radius(IntPtr L)
  76. {
  77. object o = null;
  78. try
  79. {
  80. o = ToLua.ToObject(L, 1);
  81. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  82. float ret = obj.radius;
  83. LuaDLL.lua_pushnumber(L, ret);
  84. return 1;
  85. }
  86. catch(Exception e)
  87. {
  88. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index radius on a nil value" : e.Message);
  89. }
  90. }
  91. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  92. static int get_height(IntPtr L)
  93. {
  94. object o = null;
  95. try
  96. {
  97. o = ToLua.ToObject(L, 1);
  98. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  99. float ret = obj.height;
  100. LuaDLL.lua_pushnumber(L, ret);
  101. return 1;
  102. }
  103. catch(Exception e)
  104. {
  105. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  106. }
  107. }
  108. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  109. static int get_direction(IntPtr L)
  110. {
  111. object o = null;
  112. try
  113. {
  114. o = ToLua.ToObject(L, 1);
  115. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  116. int ret = obj.direction;
  117. LuaDLL.lua_pushinteger(L, ret);
  118. return 1;
  119. }
  120. catch(Exception e)
  121. {
  122. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index direction on a nil value" : e.Message);
  123. }
  124. }
  125. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  126. static int set_center(IntPtr L)
  127. {
  128. object o = null;
  129. try
  130. {
  131. o = ToLua.ToObject(L, 1);
  132. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  133. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  134. obj.center = arg0;
  135. return 0;
  136. }
  137. catch(Exception e)
  138. {
  139. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index center on a nil value" : e.Message);
  140. }
  141. }
  142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  143. static int set_radius(IntPtr L)
  144. {
  145. object o = null;
  146. try
  147. {
  148. o = ToLua.ToObject(L, 1);
  149. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  150. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  151. obj.radius = arg0;
  152. return 0;
  153. }
  154. catch(Exception e)
  155. {
  156. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index radius on a nil value" : e.Message);
  157. }
  158. }
  159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  160. static int set_height(IntPtr L)
  161. {
  162. object o = null;
  163. try
  164. {
  165. o = ToLua.ToObject(L, 1);
  166. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  167. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  168. obj.height = arg0;
  169. return 0;
  170. }
  171. catch(Exception e)
  172. {
  173. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  174. }
  175. }
  176. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  177. static int set_direction(IntPtr L)
  178. {
  179. object o = null;
  180. try
  181. {
  182. o = ToLua.ToObject(L, 1);
  183. UnityEngine.CapsuleCollider obj = (UnityEngine.CapsuleCollider)o;
  184. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  185. obj.direction = arg0;
  186. return 0;
  187. }
  188. catch(Exception e)
  189. {
  190. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index direction on a nil value" : e.Message);
  191. }
  192. }
  193. }