源战役客户端
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

228 рядки
5.4 KiB

1 місяць тому
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class FXAAEffectWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(FXAAEffect), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("__eq", op_Equality);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("contrastThreshold", get_contrastThreshold, set_contrastThreshold);
  12. L.RegVar("relativeThreshold", get_relativeThreshold, set_relativeThreshold);
  13. L.RegVar("subpixelBlending", get_subpixelBlending, set_subpixelBlending);
  14. L.RegVar("fxaaShader", get_fxaaShader, set_fxaaShader);
  15. L.RegVar("lowQuality", get_lowQuality, set_lowQuality);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int op_Equality(IntPtr L)
  20. {
  21. try
  22. {
  23. ToLua.CheckArgsCount(L, 2);
  24. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  25. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  26. bool o = arg0 == arg1;
  27. LuaDLL.lua_pushboolean(L, o);
  28. return 1;
  29. }
  30. catch(Exception e)
  31. {
  32. return LuaDLL.toluaL_exception(L, e);
  33. }
  34. }
  35. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  36. static int get_contrastThreshold(IntPtr L)
  37. {
  38. object o = null;
  39. try
  40. {
  41. o = ToLua.ToObject(L, 1);
  42. FXAAEffect obj = (FXAAEffect)o;
  43. float ret = obj.contrastThreshold;
  44. LuaDLL.lua_pushnumber(L, ret);
  45. return 1;
  46. }
  47. catch(Exception e)
  48. {
  49. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contrastThreshold on a nil value" : e.Message);
  50. }
  51. }
  52. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  53. static int get_relativeThreshold(IntPtr L)
  54. {
  55. object o = null;
  56. try
  57. {
  58. o = ToLua.ToObject(L, 1);
  59. FXAAEffect obj = (FXAAEffect)o;
  60. float ret = obj.relativeThreshold;
  61. LuaDLL.lua_pushnumber(L, ret);
  62. return 1;
  63. }
  64. catch(Exception e)
  65. {
  66. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index relativeThreshold on a nil value" : e.Message);
  67. }
  68. }
  69. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  70. static int get_subpixelBlending(IntPtr L)
  71. {
  72. object o = null;
  73. try
  74. {
  75. o = ToLua.ToObject(L, 1);
  76. FXAAEffect obj = (FXAAEffect)o;
  77. float ret = obj.subpixelBlending;
  78. LuaDLL.lua_pushnumber(L, ret);
  79. return 1;
  80. }
  81. catch(Exception e)
  82. {
  83. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subpixelBlending on a nil value" : e.Message);
  84. }
  85. }
  86. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  87. static int get_fxaaShader(IntPtr L)
  88. {
  89. object o = null;
  90. try
  91. {
  92. o = ToLua.ToObject(L, 1);
  93. FXAAEffect obj = (FXAAEffect)o;
  94. UnityEngine.Shader ret = obj.fxaaShader;
  95. ToLua.Push(L, ret);
  96. return 1;
  97. }
  98. catch(Exception e)
  99. {
  100. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fxaaShader on a nil value" : e.Message);
  101. }
  102. }
  103. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  104. static int get_lowQuality(IntPtr L)
  105. {
  106. object o = null;
  107. try
  108. {
  109. o = ToLua.ToObject(L, 1);
  110. FXAAEffect obj = (FXAAEffect)o;
  111. bool ret = obj.lowQuality;
  112. LuaDLL.lua_pushboolean(L, ret);
  113. return 1;
  114. }
  115. catch(Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lowQuality on a nil value" : e.Message);
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int set_contrastThreshold(IntPtr L)
  122. {
  123. object o = null;
  124. try
  125. {
  126. o = ToLua.ToObject(L, 1);
  127. FXAAEffect obj = (FXAAEffect)o;
  128. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  129. obj.contrastThreshold = arg0;
  130. return 0;
  131. }
  132. catch(Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contrastThreshold on a nil value" : e.Message);
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int set_relativeThreshold(IntPtr L)
  139. {
  140. object o = null;
  141. try
  142. {
  143. o = ToLua.ToObject(L, 1);
  144. FXAAEffect obj = (FXAAEffect)o;
  145. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  146. obj.relativeThreshold = arg0;
  147. return 0;
  148. }
  149. catch(Exception e)
  150. {
  151. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index relativeThreshold on a nil value" : e.Message);
  152. }
  153. }
  154. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  155. static int set_subpixelBlending(IntPtr L)
  156. {
  157. object o = null;
  158. try
  159. {
  160. o = ToLua.ToObject(L, 1);
  161. FXAAEffect obj = (FXAAEffect)o;
  162. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  163. obj.subpixelBlending = arg0;
  164. return 0;
  165. }
  166. catch(Exception e)
  167. {
  168. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subpixelBlending on a nil value" : e.Message);
  169. }
  170. }
  171. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  172. static int set_fxaaShader(IntPtr L)
  173. {
  174. object o = null;
  175. try
  176. {
  177. o = ToLua.ToObject(L, 1);
  178. FXAAEffect obj = (FXAAEffect)o;
  179. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  180. obj.fxaaShader = arg0;
  181. return 0;
  182. }
  183. catch(Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fxaaShader on a nil value" : e.Message);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int set_lowQuality(IntPtr L)
  190. {
  191. object o = null;
  192. try
  193. {
  194. o = ToLua.ToObject(L, 1);
  195. FXAAEffect obj = (FXAAEffect)o;
  196. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  197. obj.lowQuality = arg0;
  198. return 0;
  199. }
  200. catch(Exception e)
  201. {
  202. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lowQuality on a nil value" : e.Message);
  203. }
  204. }
  205. }