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

234 lines
5.8 KiB

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