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

382 lines
9.4 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class RoleCameraBloomWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(RoleCameraBloom), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("SetBloomCameraData", SetBloomCameraData);
  10. L.RegFunction("ReleaseTempRes", ReleaseTempRes);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("cullRenderTexture", get_cullRenderTexture, set_cullRenderTexture);
  14. L.RegVar("bloomMaterial", get_bloomMaterial, set_bloomMaterial);
  15. L.RegVar("render_bloom_effect", get_render_bloom_effect, set_render_bloom_effect);
  16. L.RegVar("threshold", get_threshold, set_threshold);
  17. L.RegVar("softThreshold", get_softThreshold, set_softThreshold);
  18. L.RegVar("intensity", get_intensity, set_intensity);
  19. L.RegVar("iterations", get_iterations, set_iterations);
  20. L.RegVar("debug", get_debug, set_debug);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int SetBloomCameraData(IntPtr L)
  25. {
  26. try
  27. {
  28. ToLua.CheckArgsCount(L, 4);
  29. RoleCameraBloom obj = (RoleCameraBloom)ToLua.CheckObject(L, 1, typeof(RoleCameraBloom));
  30. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
  31. UnityEngine.RenderTexture arg1 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.RenderTexture));
  32. ChangeShaderRender arg2 = (ChangeShaderRender)ToLua.CheckUnityObject(L, 4, typeof(ChangeShaderRender));
  33. obj.SetBloomCameraData(arg0, arg1, arg2);
  34. return 0;
  35. }
  36. catch(Exception e)
  37. {
  38. return LuaDLL.toluaL_exception(L, e);
  39. }
  40. }
  41. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  42. static int ReleaseTempRes(IntPtr L)
  43. {
  44. try
  45. {
  46. ToLua.CheckArgsCount(L, 1);
  47. RoleCameraBloom obj = (RoleCameraBloom)ToLua.CheckObject(L, 1, typeof(RoleCameraBloom));
  48. obj.ReleaseTempRes();
  49. return 0;
  50. }
  51. catch(Exception e)
  52. {
  53. return LuaDLL.toluaL_exception(L, e);
  54. }
  55. }
  56. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  57. static int op_Equality(IntPtr L)
  58. {
  59. try
  60. {
  61. ToLua.CheckArgsCount(L, 2);
  62. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  63. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  64. bool o = arg0 == arg1;
  65. LuaDLL.lua_pushboolean(L, o);
  66. return 1;
  67. }
  68. catch(Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e);
  71. }
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int get_cullRenderTexture(IntPtr L)
  75. {
  76. object o = null;
  77. try
  78. {
  79. o = ToLua.ToObject(L, 1);
  80. RoleCameraBloom obj = (RoleCameraBloom)o;
  81. UnityEngine.RenderTexture ret = obj.cullRenderTexture;
  82. ToLua.Push(L, ret);
  83. return 1;
  84. }
  85. catch(Exception e)
  86. {
  87. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullRenderTexture on a nil value" : e.Message);
  88. }
  89. }
  90. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  91. static int get_bloomMaterial(IntPtr L)
  92. {
  93. object o = null;
  94. try
  95. {
  96. o = ToLua.ToObject(L, 1);
  97. RoleCameraBloom obj = (RoleCameraBloom)o;
  98. UnityEngine.Material ret = obj.bloomMaterial;
  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 bloomMaterial on a nil value" : e.Message);
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int get_render_bloom_effect(IntPtr L)
  109. {
  110. object o = null;
  111. try
  112. {
  113. o = ToLua.ToObject(L, 1);
  114. RoleCameraBloom obj = (RoleCameraBloom)o;
  115. bool ret = obj.render_bloom_effect;
  116. LuaDLL.lua_pushboolean(L, ret);
  117. return 1;
  118. }
  119. catch(Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_bloom_effect on a nil value" : e.Message);
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int get_threshold(IntPtr L)
  126. {
  127. object o = null;
  128. try
  129. {
  130. o = ToLua.ToObject(L, 1);
  131. RoleCameraBloom obj = (RoleCameraBloom)o;
  132. float ret = obj.threshold;
  133. LuaDLL.lua_pushnumber(L, ret);
  134. return 1;
  135. }
  136. catch(Exception e)
  137. {
  138. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index threshold on a nil value" : e.Message);
  139. }
  140. }
  141. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  142. static int get_softThreshold(IntPtr L)
  143. {
  144. object o = null;
  145. try
  146. {
  147. o = ToLua.ToObject(L, 1);
  148. RoleCameraBloom obj = (RoleCameraBloom)o;
  149. float ret = obj.softThreshold;
  150. LuaDLL.lua_pushnumber(L, ret);
  151. return 1;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index softThreshold on a nil value" : e.Message);
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int get_intensity(IntPtr L)
  160. {
  161. object o = null;
  162. try
  163. {
  164. o = ToLua.ToObject(L, 1);
  165. RoleCameraBloom obj = (RoleCameraBloom)o;
  166. float ret = obj.intensity;
  167. LuaDLL.lua_pushnumber(L, ret);
  168. return 1;
  169. }
  170. catch(Exception e)
  171. {
  172. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index intensity on a nil value" : e.Message);
  173. }
  174. }
  175. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  176. static int get_iterations(IntPtr L)
  177. {
  178. object o = null;
  179. try
  180. {
  181. o = ToLua.ToObject(L, 1);
  182. RoleCameraBloom obj = (RoleCameraBloom)o;
  183. int ret = obj.iterations;
  184. LuaDLL.lua_pushinteger(L, ret);
  185. return 1;
  186. }
  187. catch(Exception e)
  188. {
  189. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index iterations on a nil value" : e.Message);
  190. }
  191. }
  192. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  193. static int get_debug(IntPtr L)
  194. {
  195. object o = null;
  196. try
  197. {
  198. o = ToLua.ToObject(L, 1);
  199. RoleCameraBloom obj = (RoleCameraBloom)o;
  200. bool ret = obj.debug;
  201. LuaDLL.lua_pushboolean(L, ret);
  202. return 1;
  203. }
  204. catch(Exception e)
  205. {
  206. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index debug on a nil value" : e.Message);
  207. }
  208. }
  209. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  210. static int set_cullRenderTexture(IntPtr L)
  211. {
  212. object o = null;
  213. try
  214. {
  215. o = ToLua.ToObject(L, 1);
  216. RoleCameraBloom obj = (RoleCameraBloom)o;
  217. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RenderTexture));
  218. obj.cullRenderTexture = arg0;
  219. return 0;
  220. }
  221. catch(Exception e)
  222. {
  223. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullRenderTexture on a nil value" : e.Message);
  224. }
  225. }
  226. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  227. static int set_bloomMaterial(IntPtr L)
  228. {
  229. object o = null;
  230. try
  231. {
  232. o = ToLua.ToObject(L, 1);
  233. RoleCameraBloom obj = (RoleCameraBloom)o;
  234. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
  235. obj.bloomMaterial = arg0;
  236. return 0;
  237. }
  238. catch(Exception e)
  239. {
  240. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bloomMaterial on a nil value" : e.Message);
  241. }
  242. }
  243. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  244. static int set_render_bloom_effect(IntPtr L)
  245. {
  246. object o = null;
  247. try
  248. {
  249. o = ToLua.ToObject(L, 1);
  250. RoleCameraBloom obj = (RoleCameraBloom)o;
  251. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  252. obj.render_bloom_effect = arg0;
  253. return 0;
  254. }
  255. catch(Exception e)
  256. {
  257. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_bloom_effect on a nil value" : e.Message);
  258. }
  259. }
  260. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  261. static int set_threshold(IntPtr L)
  262. {
  263. object o = null;
  264. try
  265. {
  266. o = ToLua.ToObject(L, 1);
  267. RoleCameraBloom obj = (RoleCameraBloom)o;
  268. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  269. obj.threshold = arg0;
  270. return 0;
  271. }
  272. catch(Exception e)
  273. {
  274. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index threshold on a nil value" : e.Message);
  275. }
  276. }
  277. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  278. static int set_softThreshold(IntPtr L)
  279. {
  280. object o = null;
  281. try
  282. {
  283. o = ToLua.ToObject(L, 1);
  284. RoleCameraBloom obj = (RoleCameraBloom)o;
  285. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  286. obj.softThreshold = arg0;
  287. return 0;
  288. }
  289. catch(Exception e)
  290. {
  291. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index softThreshold on a nil value" : e.Message);
  292. }
  293. }
  294. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  295. static int set_intensity(IntPtr L)
  296. {
  297. object o = null;
  298. try
  299. {
  300. o = ToLua.ToObject(L, 1);
  301. RoleCameraBloom obj = (RoleCameraBloom)o;
  302. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  303. obj.intensity = arg0;
  304. return 0;
  305. }
  306. catch(Exception e)
  307. {
  308. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index intensity on a nil value" : e.Message);
  309. }
  310. }
  311. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  312. static int set_iterations(IntPtr L)
  313. {
  314. object o = null;
  315. try
  316. {
  317. o = ToLua.ToObject(L, 1);
  318. RoleCameraBloom obj = (RoleCameraBloom)o;
  319. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  320. obj.iterations = arg0;
  321. return 0;
  322. }
  323. catch(Exception e)
  324. {
  325. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index iterations on a nil value" : e.Message);
  326. }
  327. }
  328. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  329. static int set_debug(IntPtr L)
  330. {
  331. object o = null;
  332. try
  333. {
  334. o = ToLua.ToObject(L, 1);
  335. RoleCameraBloom obj = (RoleCameraBloom)o;
  336. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  337. obj.debug = arg0;
  338. return 0;
  339. }
  340. catch(Exception e)
  341. {
  342. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index debug on a nil value" : e.Message);
  343. }
  344. }
  345. }