源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

175 行
4.3 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_MeshColliderWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.MeshCollider), typeof(UnityEngine.Collider));
  9. L.RegFunction("New", _CreateUnityEngine_MeshCollider);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("sharedMesh", get_sharedMesh, set_sharedMesh);
  13. L.RegVar("convex", get_convex, set_convex);
  14. L.RegVar("cookingOptions", get_cookingOptions, set_cookingOptions);
  15. L.EndClass();
  16. }
  17. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  18. static int _CreateUnityEngine_MeshCollider(IntPtr L)
  19. {
  20. try
  21. {
  22. int count = LuaDLL.lua_gettop(L);
  23. if (count == 0)
  24. {
  25. UnityEngine.MeshCollider obj = new UnityEngine.MeshCollider();
  26. ToLua.Push(L, obj);
  27. return 1;
  28. }
  29. else
  30. {
  31. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.MeshCollider.New");
  32. }
  33. }
  34. catch(Exception e)
  35. {
  36. return LuaDLL.toluaL_exception(L, e);
  37. }
  38. }
  39. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  40. static int op_Equality(IntPtr L)
  41. {
  42. try
  43. {
  44. ToLua.CheckArgsCount(L, 2);
  45. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  46. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  47. bool o = arg0 == arg1;
  48. LuaDLL.lua_pushboolean(L, o);
  49. return 1;
  50. }
  51. catch(Exception e)
  52. {
  53. return LuaDLL.toluaL_exception(L, e);
  54. }
  55. }
  56. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  57. static int get_sharedMesh(IntPtr L)
  58. {
  59. object o = null;
  60. try
  61. {
  62. o = ToLua.ToObject(L, 1);
  63. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  64. UnityEngine.Mesh ret = obj.sharedMesh;
  65. ToLua.Push(L, ret);
  66. return 1;
  67. }
  68. catch(Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
  71. }
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int get_convex(IntPtr L)
  75. {
  76. object o = null;
  77. try
  78. {
  79. o = ToLua.ToObject(L, 1);
  80. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  81. bool ret = obj.convex;
  82. LuaDLL.lua_pushboolean(L, ret);
  83. return 1;
  84. }
  85. catch(Exception e)
  86. {
  87. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index convex on a nil value" : e.Message);
  88. }
  89. }
  90. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  91. static int get_cookingOptions(IntPtr L)
  92. {
  93. object o = null;
  94. try
  95. {
  96. o = ToLua.ToObject(L, 1);
  97. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  98. UnityEngine.MeshColliderCookingOptions ret = obj.cookingOptions;
  99. ToLua.Push(L, ret);
  100. return 1;
  101. }
  102. catch(Exception e)
  103. {
  104. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cookingOptions on a nil value" : e.Message);
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int set_sharedMesh(IntPtr L)
  109. {
  110. object o = null;
  111. try
  112. {
  113. o = ToLua.ToObject(L, 1);
  114. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  115. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
  116. obj.sharedMesh = arg0;
  117. return 0;
  118. }
  119. catch(Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int set_convex(IntPtr L)
  126. {
  127. object o = null;
  128. try
  129. {
  130. o = ToLua.ToObject(L, 1);
  131. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  132. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  133. obj.convex = arg0;
  134. return 0;
  135. }
  136. catch(Exception e)
  137. {
  138. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index convex on a nil value" : e.Message);
  139. }
  140. }
  141. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  142. static int set_cookingOptions(IntPtr L)
  143. {
  144. object o = null;
  145. try
  146. {
  147. o = ToLua.ToObject(L, 1);
  148. UnityEngine.MeshCollider obj = (UnityEngine.MeshCollider)o;
  149. UnityEngine.MeshColliderCookingOptions arg0 = (UnityEngine.MeshColliderCookingOptions)ToLua.CheckObject(L, 2, typeof(UnityEngine.MeshColliderCookingOptions));
  150. obj.cookingOptions = arg0;
  151. return 0;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cookingOptions on a nil value" : e.Message);
  156. }
  157. }
  158. }