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

943 lines
34 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_MaterialPropertyBlockWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Object));
  9. L.RegFunction("Clear", Clear);
  10. L.RegFunction("SetFloat", SetFloat);
  11. L.RegFunction("SetInt", SetInt);
  12. L.RegFunction("SetVector", SetVector);
  13. L.RegFunction("SetColor", SetColor);
  14. L.RegFunction("SetMatrix", SetMatrix);
  15. L.RegFunction("SetBuffer", SetBuffer);
  16. L.RegFunction("SetTexture", SetTexture);
  17. L.RegFunction("SetFloatArray", SetFloatArray);
  18. L.RegFunction("SetVectorArray", SetVectorArray);
  19. L.RegFunction("SetMatrixArray", SetMatrixArray);
  20. L.RegFunction("GetFloat", GetFloat);
  21. L.RegFunction("GetInt", GetInt);
  22. L.RegFunction("GetVector", GetVector);
  23. L.RegFunction("GetColor", GetColor);
  24. L.RegFunction("GetMatrix", GetMatrix);
  25. L.RegFunction("GetTexture", GetTexture);
  26. L.RegFunction("GetFloatArray", GetFloatArray);
  27. L.RegFunction("GetVectorArray", GetVectorArray);
  28. L.RegFunction("GetMatrixArray", GetMatrixArray);
  29. L.RegFunction("CopySHCoefficientArraysFrom", CopySHCoefficientArraysFrom);
  30. L.RegFunction("CopyProbeOcclusionArrayFrom", CopyProbeOcclusionArrayFrom);
  31. L.RegFunction("New", _CreateUnityEngine_MaterialPropertyBlock);
  32. L.RegFunction("__tostring", ToLua.op_ToString);
  33. L.RegVar("isEmpty", get_isEmpty, null);
  34. L.EndClass();
  35. }
  36. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  37. static int _CreateUnityEngine_MaterialPropertyBlock(IntPtr L)
  38. {
  39. try
  40. {
  41. int count = LuaDLL.lua_gettop(L);
  42. if (count == 0)
  43. {
  44. UnityEngine.MaterialPropertyBlock obj = new UnityEngine.MaterialPropertyBlock();
  45. ToLua.PushObject(L, obj);
  46. return 1;
  47. }
  48. else
  49. {
  50. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.MaterialPropertyBlock.New");
  51. }
  52. }
  53. catch(Exception e)
  54. {
  55. return LuaDLL.toluaL_exception(L, e);
  56. }
  57. }
  58. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  59. static int Clear(IntPtr L)
  60. {
  61. try
  62. {
  63. ToLua.CheckArgsCount(L, 1);
  64. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 1, typeof(UnityEngine.MaterialPropertyBlock));
  65. obj.Clear();
  66. return 0;
  67. }
  68. catch(Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e);
  71. }
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int SetFloat(IntPtr L)
  75. {
  76. try
  77. {
  78. int count = LuaDLL.lua_gettop(L);
  79. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(float)))
  80. {
  81. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  82. string arg0 = ToLua.ToString(L, 2);
  83. float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
  84. obj.SetFloat(arg0, arg1);
  85. return 0;
  86. }
  87. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(float)))
  88. {
  89. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  90. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  91. float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
  92. obj.SetFloat(arg0, arg1);
  93. return 0;
  94. }
  95. else
  96. {
  97. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetFloat");
  98. }
  99. }
  100. catch(Exception e)
  101. {
  102. return LuaDLL.toluaL_exception(L, e);
  103. }
  104. }
  105. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  106. static int SetInt(IntPtr L)
  107. {
  108. try
  109. {
  110. int count = LuaDLL.lua_gettop(L);
  111. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(int)))
  112. {
  113. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  114. string arg0 = ToLua.ToString(L, 2);
  115. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  116. obj.SetInt(arg0, arg1);
  117. return 0;
  118. }
  119. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(int)))
  120. {
  121. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  122. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  123. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  124. obj.SetInt(arg0, arg1);
  125. return 0;
  126. }
  127. else
  128. {
  129. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetInt");
  130. }
  131. }
  132. catch(Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e);
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int SetVector(IntPtr L)
  139. {
  140. try
  141. {
  142. int count = LuaDLL.lua_gettop(L);
  143. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Vector4)))
  144. {
  145. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  146. string arg0 = ToLua.ToString(L, 2);
  147. UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
  148. obj.SetVector(arg0, arg1);
  149. return 0;
  150. }
  151. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Vector4)))
  152. {
  153. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  154. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  155. UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
  156. obj.SetVector(arg0, arg1);
  157. return 0;
  158. }
  159. else
  160. {
  161. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetVector");
  162. }
  163. }
  164. catch(Exception e)
  165. {
  166. return LuaDLL.toluaL_exception(L, e);
  167. }
  168. }
  169. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  170. static int SetColor(IntPtr L)
  171. {
  172. try
  173. {
  174. int count = LuaDLL.lua_gettop(L);
  175. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Color)))
  176. {
  177. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  178. string arg0 = ToLua.ToString(L, 2);
  179. UnityEngine.Color arg1 = ToLua.ToColor(L, 3);
  180. obj.SetColor(arg0, arg1);
  181. return 0;
  182. }
  183. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Color)))
  184. {
  185. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  186. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  187. UnityEngine.Color arg1 = ToLua.ToColor(L, 3);
  188. obj.SetColor(arg0, arg1);
  189. return 0;
  190. }
  191. else
  192. {
  193. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetColor");
  194. }
  195. }
  196. catch(Exception e)
  197. {
  198. return LuaDLL.toluaL_exception(L, e);
  199. }
  200. }
  201. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  202. static int SetMatrix(IntPtr L)
  203. {
  204. try
  205. {
  206. int count = LuaDLL.lua_gettop(L);
  207. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Matrix4x4)))
  208. {
  209. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  210. string arg0 = ToLua.ToString(L, 2);
  211. UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.ToObject(L, 3);
  212. obj.SetMatrix(arg0, arg1);
  213. return 0;
  214. }
  215. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Matrix4x4)))
  216. {
  217. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  218. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  219. UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.ToObject(L, 3);
  220. obj.SetMatrix(arg0, arg1);
  221. return 0;
  222. }
  223. else
  224. {
  225. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetMatrix");
  226. }
  227. }
  228. catch(Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e);
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int SetBuffer(IntPtr L)
  235. {
  236. try
  237. {
  238. int count = LuaDLL.lua_gettop(L);
  239. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.ComputeBuffer)))
  240. {
  241. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  242. string arg0 = ToLua.ToString(L, 2);
  243. UnityEngine.ComputeBuffer arg1 = (UnityEngine.ComputeBuffer)ToLua.ToObject(L, 3);
  244. obj.SetBuffer(arg0, arg1);
  245. return 0;
  246. }
  247. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.ComputeBuffer)))
  248. {
  249. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  250. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  251. UnityEngine.ComputeBuffer arg1 = (UnityEngine.ComputeBuffer)ToLua.ToObject(L, 3);
  252. obj.SetBuffer(arg0, arg1);
  253. return 0;
  254. }
  255. else
  256. {
  257. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetBuffer");
  258. }
  259. }
  260. catch(Exception e)
  261. {
  262. return LuaDLL.toluaL_exception(L, e);
  263. }
  264. }
  265. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  266. static int SetTexture(IntPtr L)
  267. {
  268. try
  269. {
  270. int count = LuaDLL.lua_gettop(L);
  271. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Texture)))
  272. {
  273. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  274. string arg0 = ToLua.ToString(L, 2);
  275. UnityEngine.Texture arg1 = (UnityEngine.Texture)ToLua.ToObject(L, 3);
  276. obj.SetTexture(arg0, arg1);
  277. return 0;
  278. }
  279. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Texture)))
  280. {
  281. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  282. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  283. UnityEngine.Texture arg1 = (UnityEngine.Texture)ToLua.ToObject(L, 3);
  284. obj.SetTexture(arg0, arg1);
  285. return 0;
  286. }
  287. else
  288. {
  289. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetTexture");
  290. }
  291. }
  292. catch(Exception e)
  293. {
  294. return LuaDLL.toluaL_exception(L, e);
  295. }
  296. }
  297. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  298. static int SetFloatArray(IntPtr L)
  299. {
  300. try
  301. {
  302. int count = LuaDLL.lua_gettop(L);
  303. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<float>)))
  304. {
  305. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  306. string arg0 = ToLua.ToString(L, 2);
  307. System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
  308. obj.SetFloatArray(arg0, arg1);
  309. return 0;
  310. }
  311. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<float>)))
  312. {
  313. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  314. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  315. System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
  316. obj.SetFloatArray(arg0, arg1);
  317. return 0;
  318. }
  319. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(float[])))
  320. {
  321. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  322. string arg0 = ToLua.ToString(L, 2);
  323. float[] arg1 = ToLua.CheckNumberArray<float>(L, 3);
  324. obj.SetFloatArray(arg0, arg1);
  325. return 0;
  326. }
  327. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(float[])))
  328. {
  329. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  330. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  331. float[] arg1 = ToLua.CheckNumberArray<float>(L, 3);
  332. obj.SetFloatArray(arg0, arg1);
  333. return 0;
  334. }
  335. else
  336. {
  337. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetFloatArray");
  338. }
  339. }
  340. catch(Exception e)
  341. {
  342. return LuaDLL.toluaL_exception(L, e);
  343. }
  344. }
  345. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  346. static int SetVectorArray(IntPtr L)
  347. {
  348. try
  349. {
  350. int count = LuaDLL.lua_gettop(L);
  351. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  352. {
  353. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  354. string arg0 = ToLua.ToString(L, 2);
  355. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  356. obj.SetVectorArray(arg0, arg1);
  357. return 0;
  358. }
  359. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  360. {
  361. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  362. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  363. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  364. obj.SetVectorArray(arg0, arg1);
  365. return 0;
  366. }
  367. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Vector4[])))
  368. {
  369. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  370. string arg0 = ToLua.ToString(L, 2);
  371. UnityEngine.Vector4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 3);
  372. obj.SetVectorArray(arg0, arg1);
  373. return 0;
  374. }
  375. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Vector4[])))
  376. {
  377. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  378. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  379. UnityEngine.Vector4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 3);
  380. obj.SetVectorArray(arg0, arg1);
  381. return 0;
  382. }
  383. else
  384. {
  385. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetVectorArray");
  386. }
  387. }
  388. catch(Exception e)
  389. {
  390. return LuaDLL.toluaL_exception(L, e);
  391. }
  392. }
  393. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  394. static int SetMatrixArray(IntPtr L)
  395. {
  396. try
  397. {
  398. int count = LuaDLL.lua_gettop(L);
  399. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
  400. {
  401. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  402. string arg0 = ToLua.ToString(L, 2);
  403. System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
  404. obj.SetMatrixArray(arg0, arg1);
  405. return 0;
  406. }
  407. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
  408. {
  409. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  410. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  411. System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
  412. obj.SetMatrixArray(arg0, arg1);
  413. return 0;
  414. }
  415. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(UnityEngine.Matrix4x4[])))
  416. {
  417. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  418. string arg0 = ToLua.ToString(L, 2);
  419. UnityEngine.Matrix4x4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 3);
  420. obj.SetMatrixArray(arg0, arg1);
  421. return 0;
  422. }
  423. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(UnityEngine.Matrix4x4[])))
  424. {
  425. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  426. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  427. UnityEngine.Matrix4x4[] arg1 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 3);
  428. obj.SetMatrixArray(arg0, arg1);
  429. return 0;
  430. }
  431. else
  432. {
  433. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetMatrixArray");
  434. }
  435. }
  436. catch(Exception e)
  437. {
  438. return LuaDLL.toluaL_exception(L, e);
  439. }
  440. }
  441. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  442. static int GetFloat(IntPtr L)
  443. {
  444. try
  445. {
  446. int count = LuaDLL.lua_gettop(L);
  447. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  448. {
  449. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  450. string arg0 = ToLua.ToString(L, 2);
  451. float o = obj.GetFloat(arg0);
  452. LuaDLL.lua_pushnumber(L, o);
  453. return 1;
  454. }
  455. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  456. {
  457. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  458. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  459. float o = obj.GetFloat(arg0);
  460. LuaDLL.lua_pushnumber(L, o);
  461. return 1;
  462. }
  463. else
  464. {
  465. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetFloat");
  466. }
  467. }
  468. catch(Exception e)
  469. {
  470. return LuaDLL.toluaL_exception(L, e);
  471. }
  472. }
  473. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  474. static int GetInt(IntPtr L)
  475. {
  476. try
  477. {
  478. int count = LuaDLL.lua_gettop(L);
  479. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  480. {
  481. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  482. string arg0 = ToLua.ToString(L, 2);
  483. int o = obj.GetInt(arg0);
  484. LuaDLL.lua_pushinteger(L, o);
  485. return 1;
  486. }
  487. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  488. {
  489. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  490. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  491. int o = obj.GetInt(arg0);
  492. LuaDLL.lua_pushinteger(L, o);
  493. return 1;
  494. }
  495. else
  496. {
  497. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetInt");
  498. }
  499. }
  500. catch(Exception e)
  501. {
  502. return LuaDLL.toluaL_exception(L, e);
  503. }
  504. }
  505. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  506. static int GetVector(IntPtr L)
  507. {
  508. try
  509. {
  510. int count = LuaDLL.lua_gettop(L);
  511. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  512. {
  513. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  514. string arg0 = ToLua.ToString(L, 2);
  515. UnityEngine.Vector4 o = obj.GetVector(arg0);
  516. ToLua.Push(L, o);
  517. return 1;
  518. }
  519. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  520. {
  521. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  522. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  523. UnityEngine.Vector4 o = obj.GetVector(arg0);
  524. ToLua.Push(L, o);
  525. return 1;
  526. }
  527. else
  528. {
  529. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetVector");
  530. }
  531. }
  532. catch(Exception e)
  533. {
  534. return LuaDLL.toluaL_exception(L, e);
  535. }
  536. }
  537. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  538. static int GetColor(IntPtr L)
  539. {
  540. try
  541. {
  542. int count = LuaDLL.lua_gettop(L);
  543. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  544. {
  545. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  546. string arg0 = ToLua.ToString(L, 2);
  547. UnityEngine.Color o = obj.GetColor(arg0);
  548. ToLua.Push(L, o);
  549. return 1;
  550. }
  551. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  552. {
  553. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  554. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  555. UnityEngine.Color o = obj.GetColor(arg0);
  556. ToLua.Push(L, o);
  557. return 1;
  558. }
  559. else
  560. {
  561. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetColor");
  562. }
  563. }
  564. catch(Exception e)
  565. {
  566. return LuaDLL.toluaL_exception(L, e);
  567. }
  568. }
  569. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  570. static int GetMatrix(IntPtr L)
  571. {
  572. try
  573. {
  574. int count = LuaDLL.lua_gettop(L);
  575. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  576. {
  577. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  578. string arg0 = ToLua.ToString(L, 2);
  579. UnityEngine.Matrix4x4 o = obj.GetMatrix(arg0);
  580. ToLua.PushValue(L, o);
  581. return 1;
  582. }
  583. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  584. {
  585. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  586. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  587. UnityEngine.Matrix4x4 o = obj.GetMatrix(arg0);
  588. ToLua.PushValue(L, o);
  589. return 1;
  590. }
  591. else
  592. {
  593. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetMatrix");
  594. }
  595. }
  596. catch(Exception e)
  597. {
  598. return LuaDLL.toluaL_exception(L, e);
  599. }
  600. }
  601. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  602. static int GetTexture(IntPtr L)
  603. {
  604. try
  605. {
  606. int count = LuaDLL.lua_gettop(L);
  607. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  608. {
  609. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  610. string arg0 = ToLua.ToString(L, 2);
  611. UnityEngine.Texture o = obj.GetTexture(arg0);
  612. ToLua.Push(L, o);
  613. return 1;
  614. }
  615. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  616. {
  617. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  618. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  619. UnityEngine.Texture o = obj.GetTexture(arg0);
  620. ToLua.Push(L, o);
  621. return 1;
  622. }
  623. else
  624. {
  625. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetTexture");
  626. }
  627. }
  628. catch(Exception e)
  629. {
  630. return LuaDLL.toluaL_exception(L, e);
  631. }
  632. }
  633. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  634. static int GetFloatArray(IntPtr L)
  635. {
  636. try
  637. {
  638. int count = LuaDLL.lua_gettop(L);
  639. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  640. {
  641. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  642. string arg0 = ToLua.ToString(L, 2);
  643. float[] o = obj.GetFloatArray(arg0);
  644. ToLua.Push(L, o);
  645. return 1;
  646. }
  647. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  648. {
  649. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  650. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  651. float[] o = obj.GetFloatArray(arg0);
  652. ToLua.Push(L, o);
  653. return 1;
  654. }
  655. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<float>)))
  656. {
  657. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  658. string arg0 = ToLua.ToString(L, 2);
  659. System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
  660. obj.GetFloatArray(arg0, arg1);
  661. return 0;
  662. }
  663. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<float>)))
  664. {
  665. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  666. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  667. System.Collections.Generic.List<float> arg1 = (System.Collections.Generic.List<float>)ToLua.ToObject(L, 3);
  668. obj.GetFloatArray(arg0, arg1);
  669. return 0;
  670. }
  671. else
  672. {
  673. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetFloatArray");
  674. }
  675. }
  676. catch(Exception e)
  677. {
  678. return LuaDLL.toluaL_exception(L, e);
  679. }
  680. }
  681. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  682. static int GetVectorArray(IntPtr L)
  683. {
  684. try
  685. {
  686. int count = LuaDLL.lua_gettop(L);
  687. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  688. {
  689. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  690. string arg0 = ToLua.ToString(L, 2);
  691. UnityEngine.Vector4[] o = obj.GetVectorArray(arg0);
  692. ToLua.Push(L, o);
  693. return 1;
  694. }
  695. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  696. {
  697. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  698. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  699. UnityEngine.Vector4[] o = obj.GetVectorArray(arg0);
  700. ToLua.Push(L, o);
  701. return 1;
  702. }
  703. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  704. {
  705. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  706. string arg0 = ToLua.ToString(L, 2);
  707. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  708. obj.GetVectorArray(arg0, arg1);
  709. return 0;
  710. }
  711. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  712. {
  713. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  714. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  715. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  716. obj.GetVectorArray(arg0, arg1);
  717. return 0;
  718. }
  719. else
  720. {
  721. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetVectorArray");
  722. }
  723. }
  724. catch(Exception e)
  725. {
  726. return LuaDLL.toluaL_exception(L, e);
  727. }
  728. }
  729. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  730. static int GetMatrixArray(IntPtr L)
  731. {
  732. try
  733. {
  734. int count = LuaDLL.lua_gettop(L);
  735. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string)))
  736. {
  737. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  738. string arg0 = ToLua.ToString(L, 2);
  739. UnityEngine.Matrix4x4[] o = obj.GetMatrixArray(arg0);
  740. ToLua.Push(L, o);
  741. return 1;
  742. }
  743. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  744. {
  745. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  746. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  747. UnityEngine.Matrix4x4[] o = obj.GetMatrixArray(arg0);
  748. ToLua.Push(L, o);
  749. return 1;
  750. }
  751. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(string), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
  752. {
  753. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  754. string arg0 = ToLua.ToString(L, 2);
  755. System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
  756. obj.GetMatrixArray(arg0, arg1);
  757. return 0;
  758. }
  759. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>)))
  760. {
  761. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  762. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  763. System.Collections.Generic.List<UnityEngine.Matrix4x4> arg1 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.ToObject(L, 3);
  764. obj.GetMatrixArray(arg0, arg1);
  765. return 0;
  766. }
  767. else
  768. {
  769. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.GetMatrixArray");
  770. }
  771. }
  772. catch(Exception e)
  773. {
  774. return LuaDLL.toluaL_exception(L, e);
  775. }
  776. }
  777. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  778. static int CopySHCoefficientArraysFrom(IntPtr L)
  779. {
  780. try
  781. {
  782. int count = LuaDLL.lua_gettop(L);
  783. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)))
  784. {
  785. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  786. System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)ToLua.ToObject(L, 2);
  787. obj.CopySHCoefficientArraysFrom(arg0);
  788. return 0;
  789. }
  790. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])))
  791. {
  792. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  793. UnityEngine.Rendering.SphericalHarmonicsL2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Rendering.SphericalHarmonicsL2>(L, 2);
  794. obj.CopySHCoefficientArraysFrom(arg0);
  795. return 0;
  796. }
  797. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>), typeof(int), typeof(int), typeof(int)))
  798. {
  799. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  800. System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.SphericalHarmonicsL2>)ToLua.ToObject(L, 2);
  801. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  802. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  803. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  804. obj.CopySHCoefficientArraysFrom(arg0, arg1, arg2, arg3);
  805. return 0;
  806. }
  807. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Rendering.SphericalHarmonicsL2[]), typeof(int), typeof(int), typeof(int)))
  808. {
  809. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  810. UnityEngine.Rendering.SphericalHarmonicsL2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Rendering.SphericalHarmonicsL2>(L, 2);
  811. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  812. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  813. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  814. obj.CopySHCoefficientArraysFrom(arg0, arg1, arg2, arg3);
  815. return 0;
  816. }
  817. else
  818. {
  819. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.CopySHCoefficientArraysFrom");
  820. }
  821. }
  822. catch(Exception e)
  823. {
  824. return LuaDLL.toluaL_exception(L, e);
  825. }
  826. }
  827. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  828. static int CopyProbeOcclusionArrayFrom(IntPtr L)
  829. {
  830. try
  831. {
  832. int count = LuaDLL.lua_gettop(L);
  833. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  834. {
  835. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  836. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 2);
  837. obj.CopyProbeOcclusionArrayFrom(arg0);
  838. return 0;
  839. }
  840. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Vector4[])))
  841. {
  842. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  843. UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
  844. obj.CopyProbeOcclusionArrayFrom(arg0);
  845. return 0;
  846. }
  847. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(System.Collections.Generic.List<UnityEngine.Vector4>), typeof(int), typeof(int), typeof(int)))
  848. {
  849. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  850. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 2);
  851. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  852. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  853. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  854. obj.CopyProbeOcclusionArrayFrom(arg0, arg1, arg2, arg3);
  855. return 0;
  856. }
  857. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.MaterialPropertyBlock), typeof(UnityEngine.Vector4[]), typeof(int), typeof(int), typeof(int)))
  858. {
  859. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 1);
  860. UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
  861. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  862. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  863. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  864. obj.CopyProbeOcclusionArrayFrom(arg0, arg1, arg2, arg3);
  865. return 0;
  866. }
  867. else
  868. {
  869. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.CopyProbeOcclusionArrayFrom");
  870. }
  871. }
  872. catch(Exception e)
  873. {
  874. return LuaDLL.toluaL_exception(L, e);
  875. }
  876. }
  877. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  878. static int get_isEmpty(IntPtr L)
  879. {
  880. object o = null;
  881. try
  882. {
  883. o = ToLua.ToObject(L, 1);
  884. UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)o;
  885. bool ret = obj.isEmpty;
  886. LuaDLL.lua_pushboolean(L, ret);
  887. return 1;
  888. }
  889. catch(Exception e)
  890. {
  891. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isEmpty on a nil value" : e.Message);
  892. }
  893. }
  894. }