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

457 lines
11 KiB

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