源战役客户端
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.

136 lines
3.1 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_BoxColliderWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.BoxCollider), typeof(UnityEngine.Collider));
  9. L.RegFunction("New", _CreateUnityEngine_BoxCollider);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("center", get_center, set_center);
  13. L.RegVar("size", get_size, set_size);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int _CreateUnityEngine_BoxCollider(IntPtr L)
  18. {
  19. try
  20. {
  21. int count = LuaDLL.lua_gettop(L);
  22. if (count == 0)
  23. {
  24. UnityEngine.BoxCollider obj = new UnityEngine.BoxCollider();
  25. ToLua.Push(L, obj);
  26. return 1;
  27. }
  28. else
  29. {
  30. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.BoxCollider.New");
  31. }
  32. }
  33. catch(Exception e)
  34. {
  35. return LuaDLL.toluaL_exception(L, e);
  36. }
  37. }
  38. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  39. static int op_Equality(IntPtr L)
  40. {
  41. try
  42. {
  43. ToLua.CheckArgsCount(L, 2);
  44. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  45. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  46. bool o = arg0 == arg1;
  47. LuaDLL.lua_pushboolean(L, o);
  48. return 1;
  49. }
  50. catch(Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int get_center(IntPtr L)
  57. {
  58. object o = null;
  59. try
  60. {
  61. o = ToLua.ToObject(L, 1);
  62. UnityEngine.BoxCollider obj = (UnityEngine.BoxCollider)o;
  63. UnityEngine.Vector3 ret = obj.center;
  64. ToLua.Push(L, ret);
  65. return 1;
  66. }
  67. catch(Exception e)
  68. {
  69. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index center on a nil value" : e.Message);
  70. }
  71. }
  72. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  73. static int get_size(IntPtr L)
  74. {
  75. object o = null;
  76. try
  77. {
  78. o = ToLua.ToObject(L, 1);
  79. UnityEngine.BoxCollider obj = (UnityEngine.BoxCollider)o;
  80. UnityEngine.Vector3 ret = obj.size;
  81. ToLua.Push(L, ret);
  82. return 1;
  83. }
  84. catch(Exception e)
  85. {
  86. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index size on a nil value" : e.Message);
  87. }
  88. }
  89. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  90. static int set_center(IntPtr L)
  91. {
  92. object o = null;
  93. try
  94. {
  95. o = ToLua.ToObject(L, 1);
  96. UnityEngine.BoxCollider obj = (UnityEngine.BoxCollider)o;
  97. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  98. obj.center = arg0;
  99. return 0;
  100. }
  101. catch(Exception e)
  102. {
  103. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index center on a nil value" : e.Message);
  104. }
  105. }
  106. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  107. static int set_size(IntPtr L)
  108. {
  109. object o = null;
  110. try
  111. {
  112. o = ToLua.ToObject(L, 1);
  113. UnityEngine.BoxCollider obj = (UnityEngine.BoxCollider)o;
  114. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  115. obj.size = arg0;
  116. return 0;
  117. }
  118. catch(Exception e)
  119. {
  120. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index size on a nil value" : e.Message);
  121. }
  122. }
  123. }