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

426 行
11 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_SkinnedMeshRendererWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.SkinnedMeshRenderer), typeof(UnityEngine.Renderer));
  9. L.RegFunction("GetBlendShapeWeight", GetBlendShapeWeight);
  10. L.RegFunction("SetBlendShapeWeight", SetBlendShapeWeight);
  11. L.RegFunction("BakeMesh", BakeMesh);
  12. L.RegFunction("New", _CreateUnityEngine_SkinnedMeshRenderer);
  13. L.RegFunction("__eq", op_Equality);
  14. L.RegFunction("__tostring", ToLua.op_ToString);
  15. L.RegVar("quality", get_quality, set_quality);
  16. L.RegVar("updateWhenOffscreen", get_updateWhenOffscreen, set_updateWhenOffscreen);
  17. L.RegVar("forceMatrixRecalculationPerRender", get_forceMatrixRecalculationPerRender, set_forceMatrixRecalculationPerRender);
  18. L.RegVar("rootBone", get_rootBone, set_rootBone);
  19. L.RegVar("bones", get_bones, set_bones);
  20. L.RegVar("sharedMesh", get_sharedMesh, set_sharedMesh);
  21. L.RegVar("skinnedMotionVectors", get_skinnedMotionVectors, set_skinnedMotionVectors);
  22. L.RegVar("localBounds", get_localBounds, set_localBounds);
  23. L.EndClass();
  24. }
  25. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  26. static int _CreateUnityEngine_SkinnedMeshRenderer(IntPtr L)
  27. {
  28. try
  29. {
  30. int count = LuaDLL.lua_gettop(L);
  31. if (count == 0)
  32. {
  33. UnityEngine.SkinnedMeshRenderer obj = new UnityEngine.SkinnedMeshRenderer();
  34. ToLua.Push(L, obj);
  35. return 1;
  36. }
  37. else
  38. {
  39. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.SkinnedMeshRenderer.New");
  40. }
  41. }
  42. catch(Exception e)
  43. {
  44. return LuaDLL.toluaL_exception(L, e);
  45. }
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int GetBlendShapeWeight(IntPtr L)
  49. {
  50. try
  51. {
  52. ToLua.CheckArgsCount(L, 2);
  53. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
  54. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  55. float o = obj.GetBlendShapeWeight(arg0);
  56. LuaDLL.lua_pushnumber(L, o);
  57. return 1;
  58. }
  59. catch(Exception e)
  60. {
  61. return LuaDLL.toluaL_exception(L, e);
  62. }
  63. }
  64. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  65. static int SetBlendShapeWeight(IntPtr L)
  66. {
  67. try
  68. {
  69. ToLua.CheckArgsCount(L, 3);
  70. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
  71. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  72. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  73. obj.SetBlendShapeWeight(arg0, arg1);
  74. return 0;
  75. }
  76. catch(Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e);
  79. }
  80. }
  81. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  82. static int BakeMesh(IntPtr L)
  83. {
  84. try
  85. {
  86. ToLua.CheckArgsCount(L, 2);
  87. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
  88. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
  89. obj.BakeMesh(arg0);
  90. return 0;
  91. }
  92. catch(Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e);
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int op_Equality(IntPtr L)
  99. {
  100. try
  101. {
  102. ToLua.CheckArgsCount(L, 2);
  103. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  104. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  105. bool o = arg0 == arg1;
  106. LuaDLL.lua_pushboolean(L, o);
  107. return 1;
  108. }
  109. catch(Exception e)
  110. {
  111. return LuaDLL.toluaL_exception(L, e);
  112. }
  113. }
  114. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  115. static int get_quality(IntPtr L)
  116. {
  117. object o = null;
  118. try
  119. {
  120. o = ToLua.ToObject(L, 1);
  121. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  122. UnityEngine.SkinQuality ret = obj.quality;
  123. ToLua.Push(L, ret);
  124. return 1;
  125. }
  126. catch(Exception e)
  127. {
  128. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index quality on a nil value" : e.Message);
  129. }
  130. }
  131. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  132. static int get_updateWhenOffscreen(IntPtr L)
  133. {
  134. object o = null;
  135. try
  136. {
  137. o = ToLua.ToObject(L, 1);
  138. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  139. bool ret = obj.updateWhenOffscreen;
  140. LuaDLL.lua_pushboolean(L, ret);
  141. return 1;
  142. }
  143. catch(Exception e)
  144. {
  145. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateWhenOffscreen on a nil value" : e.Message);
  146. }
  147. }
  148. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  149. static int get_forceMatrixRecalculationPerRender(IntPtr L)
  150. {
  151. object o = null;
  152. try
  153. {
  154. o = ToLua.ToObject(L, 1);
  155. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  156. bool ret = obj.forceMatrixRecalculationPerRender;
  157. LuaDLL.lua_pushboolean(L, ret);
  158. return 1;
  159. }
  160. catch(Exception e)
  161. {
  162. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index forceMatrixRecalculationPerRender on a nil value" : e.Message);
  163. }
  164. }
  165. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  166. static int get_rootBone(IntPtr L)
  167. {
  168. object o = null;
  169. try
  170. {
  171. o = ToLua.ToObject(L, 1);
  172. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  173. UnityEngine.Transform ret = obj.rootBone;
  174. ToLua.Push(L, ret);
  175. return 1;
  176. }
  177. catch(Exception e)
  178. {
  179. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rootBone on a nil value" : e.Message);
  180. }
  181. }
  182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  183. static int get_bones(IntPtr L)
  184. {
  185. object o = null;
  186. try
  187. {
  188. o = ToLua.ToObject(L, 1);
  189. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  190. UnityEngine.Transform[] ret = obj.bones;
  191. ToLua.Push(L, ret);
  192. return 1;
  193. }
  194. catch(Exception e)
  195. {
  196. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bones on a nil value" : e.Message);
  197. }
  198. }
  199. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  200. static int get_sharedMesh(IntPtr L)
  201. {
  202. object o = null;
  203. try
  204. {
  205. o = ToLua.ToObject(L, 1);
  206. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  207. UnityEngine.Mesh ret = obj.sharedMesh;
  208. ToLua.Push(L, ret);
  209. return 1;
  210. }
  211. catch(Exception e)
  212. {
  213. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
  214. }
  215. }
  216. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  217. static int get_skinnedMotionVectors(IntPtr L)
  218. {
  219. object o = null;
  220. try
  221. {
  222. o = ToLua.ToObject(L, 1);
  223. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  224. bool ret = obj.skinnedMotionVectors;
  225. LuaDLL.lua_pushboolean(L, ret);
  226. return 1;
  227. }
  228. catch(Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skinnedMotionVectors on a nil value" : e.Message);
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int get_localBounds(IntPtr L)
  235. {
  236. object o = null;
  237. try
  238. {
  239. o = ToLua.ToObject(L, 1);
  240. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  241. UnityEngine.Bounds ret = obj.localBounds;
  242. ToLua.Push(L, ret);
  243. return 1;
  244. }
  245. catch(Exception e)
  246. {
  247. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index localBounds on a nil value" : e.Message);
  248. }
  249. }
  250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  251. static int set_quality(IntPtr L)
  252. {
  253. object o = null;
  254. try
  255. {
  256. o = ToLua.ToObject(L, 1);
  257. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  258. UnityEngine.SkinQuality arg0 = (UnityEngine.SkinQuality)ToLua.CheckObject(L, 2, typeof(UnityEngine.SkinQuality));
  259. obj.quality = arg0;
  260. return 0;
  261. }
  262. catch(Exception e)
  263. {
  264. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index quality on a nil value" : e.Message);
  265. }
  266. }
  267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  268. static int set_updateWhenOffscreen(IntPtr L)
  269. {
  270. object o = null;
  271. try
  272. {
  273. o = ToLua.ToObject(L, 1);
  274. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  275. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  276. obj.updateWhenOffscreen = arg0;
  277. return 0;
  278. }
  279. catch(Exception e)
  280. {
  281. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateWhenOffscreen on a nil value" : e.Message);
  282. }
  283. }
  284. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  285. static int set_forceMatrixRecalculationPerRender(IntPtr L)
  286. {
  287. object o = null;
  288. try
  289. {
  290. o = ToLua.ToObject(L, 1);
  291. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  292. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  293. obj.forceMatrixRecalculationPerRender = arg0;
  294. return 0;
  295. }
  296. catch(Exception e)
  297. {
  298. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index forceMatrixRecalculationPerRender on a nil value" : e.Message);
  299. }
  300. }
  301. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  302. static int set_rootBone(IntPtr L)
  303. {
  304. object o = null;
  305. try
  306. {
  307. o = ToLua.ToObject(L, 1);
  308. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  309. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  310. obj.rootBone = arg0;
  311. return 0;
  312. }
  313. catch(Exception e)
  314. {
  315. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rootBone on a nil value" : e.Message);
  316. }
  317. }
  318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  319. static int set_bones(IntPtr L)
  320. {
  321. object o = null;
  322. try
  323. {
  324. o = ToLua.ToObject(L, 1);
  325. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  326. UnityEngine.Transform[] arg0 = ToLua.CheckObjectArray<UnityEngine.Transform>(L, 2);
  327. obj.bones = arg0;
  328. return 0;
  329. }
  330. catch(Exception e)
  331. {
  332. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bones on a nil value" : e.Message);
  333. }
  334. }
  335. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  336. static int set_sharedMesh(IntPtr L)
  337. {
  338. object o = null;
  339. try
  340. {
  341. o = ToLua.ToObject(L, 1);
  342. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  343. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
  344. obj.sharedMesh = arg0;
  345. return 0;
  346. }
  347. catch(Exception e)
  348. {
  349. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
  350. }
  351. }
  352. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  353. static int set_skinnedMotionVectors(IntPtr L)
  354. {
  355. object o = null;
  356. try
  357. {
  358. o = ToLua.ToObject(L, 1);
  359. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  360. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  361. obj.skinnedMotionVectors = arg0;
  362. return 0;
  363. }
  364. catch(Exception e)
  365. {
  366. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skinnedMotionVectors on a nil value" : e.Message);
  367. }
  368. }
  369. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  370. static int set_localBounds(IntPtr L)
  371. {
  372. object o = null;
  373. try
  374. {
  375. o = ToLua.ToObject(L, 1);
  376. UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
  377. UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 2);
  378. obj.localBounds = arg0;
  379. return 0;
  380. }
  381. catch(Exception e)
  382. {
  383. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index localBounds on a nil value" : e.Message);
  384. }
  385. }
  386. }