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

258 lines
6.5 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class ExtendButtonScaleWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(ExtendButtonScale), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("SetTarget", SetTarget);
  10. L.RegFunction("SetOriginalSacle", SetOriginalSacle);
  11. L.RegFunction("SetPressScale", SetPressScale);
  12. L.RegFunction("SetNormalScale", SetNormalScale);
  13. L.RegFunction("OnPointerDown", OnPointerDown);
  14. L.RegFunction("OnPointerUp", OnPointerUp);
  15. L.RegFunction("__eq", op_Equality);
  16. L.RegFunction("__tostring", ToLua.op_ToString);
  17. L.RegVar("target", get_target, set_target);
  18. L.RegVar("pressScale", get_pressScale, set_pressScale);
  19. L.RegVar("normalScale", get_normalScale, set_normalScale);
  20. L.EndClass();
  21. }
  22. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  23. static int SetTarget(IntPtr L)
  24. {
  25. try
  26. {
  27. ToLua.CheckArgsCount(L, 2);
  28. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  29. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  30. obj.SetTarget(arg0);
  31. return 0;
  32. }
  33. catch(Exception e)
  34. {
  35. return LuaDLL.toluaL_exception(L, e);
  36. }
  37. }
  38. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  39. static int SetOriginalSacle(IntPtr L)
  40. {
  41. try
  42. {
  43. ToLua.CheckArgsCount(L, 2);
  44. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  45. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  46. obj.SetOriginalSacle(arg0);
  47. return 0;
  48. }
  49. catch(Exception e)
  50. {
  51. return LuaDLL.toluaL_exception(L, e);
  52. }
  53. }
  54. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  55. static int SetPressScale(IntPtr L)
  56. {
  57. try
  58. {
  59. ToLua.CheckArgsCount(L, 2);
  60. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  61. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  62. obj.SetPressScale(arg0);
  63. return 0;
  64. }
  65. catch(Exception e)
  66. {
  67. return LuaDLL.toluaL_exception(L, e);
  68. }
  69. }
  70. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  71. static int SetNormalScale(IntPtr L)
  72. {
  73. try
  74. {
  75. ToLua.CheckArgsCount(L, 2);
  76. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  77. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  78. obj.SetNormalScale(arg0);
  79. return 0;
  80. }
  81. catch(Exception e)
  82. {
  83. return LuaDLL.toluaL_exception(L, e);
  84. }
  85. }
  86. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  87. static int OnPointerDown(IntPtr L)
  88. {
  89. try
  90. {
  91. ToLua.CheckArgsCount(L, 2);
  92. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  93. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  94. obj.OnPointerDown(arg0);
  95. return 0;
  96. }
  97. catch(Exception e)
  98. {
  99. return LuaDLL.toluaL_exception(L, e);
  100. }
  101. }
  102. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  103. static int OnPointerUp(IntPtr L)
  104. {
  105. try
  106. {
  107. ToLua.CheckArgsCount(L, 2);
  108. ExtendButtonScale obj = (ExtendButtonScale)ToLua.CheckObject(L, 1, typeof(ExtendButtonScale));
  109. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  110. obj.OnPointerUp(arg0);
  111. return 0;
  112. }
  113. catch(Exception e)
  114. {
  115. return LuaDLL.toluaL_exception(L, e);
  116. }
  117. }
  118. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  119. static int op_Equality(IntPtr L)
  120. {
  121. try
  122. {
  123. ToLua.CheckArgsCount(L, 2);
  124. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  125. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  126. bool o = arg0 == arg1;
  127. LuaDLL.lua_pushboolean(L, o);
  128. return 1;
  129. }
  130. catch(Exception e)
  131. {
  132. return LuaDLL.toluaL_exception(L, e);
  133. }
  134. }
  135. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  136. static int get_target(IntPtr L)
  137. {
  138. object o = null;
  139. try
  140. {
  141. o = ToLua.ToObject(L, 1);
  142. ExtendButtonScale obj = (ExtendButtonScale)o;
  143. UnityEngine.Transform ret = obj.target;
  144. ToLua.Push(L, ret);
  145. return 1;
  146. }
  147. catch(Exception e)
  148. {
  149. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message);
  150. }
  151. }
  152. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  153. static int get_pressScale(IntPtr L)
  154. {
  155. object o = null;
  156. try
  157. {
  158. o = ToLua.ToObject(L, 1);
  159. ExtendButtonScale obj = (ExtendButtonScale)o;
  160. UnityEngine.Vector3 ret = obj.pressScale;
  161. ToLua.Push(L, ret);
  162. return 1;
  163. }
  164. catch(Exception e)
  165. {
  166. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pressScale on a nil value" : e.Message);
  167. }
  168. }
  169. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  170. static int get_normalScale(IntPtr L)
  171. {
  172. object o = null;
  173. try
  174. {
  175. o = ToLua.ToObject(L, 1);
  176. ExtendButtonScale obj = (ExtendButtonScale)o;
  177. UnityEngine.Vector3 ret = obj.normalScale;
  178. ToLua.Push(L, ret);
  179. return 1;
  180. }
  181. catch(Exception e)
  182. {
  183. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalScale on a nil value" : e.Message);
  184. }
  185. }
  186. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  187. static int set_target(IntPtr L)
  188. {
  189. object o = null;
  190. try
  191. {
  192. o = ToLua.ToObject(L, 1);
  193. ExtendButtonScale obj = (ExtendButtonScale)o;
  194. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  195. obj.target = arg0;
  196. return 0;
  197. }
  198. catch(Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message);
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int set_pressScale(IntPtr L)
  205. {
  206. object o = null;
  207. try
  208. {
  209. o = ToLua.ToObject(L, 1);
  210. ExtendButtonScale obj = (ExtendButtonScale)o;
  211. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  212. obj.pressScale = arg0;
  213. return 0;
  214. }
  215. catch(Exception e)
  216. {
  217. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pressScale on a nil value" : e.Message);
  218. }
  219. }
  220. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  221. static int set_normalScale(IntPtr L)
  222. {
  223. object o = null;
  224. try
  225. {
  226. o = ToLua.ToObject(L, 1);
  227. ExtendButtonScale obj = (ExtendButtonScale)o;
  228. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  229. obj.normalScale = arg0;
  230. return 0;
  231. }
  232. catch(Exception e)
  233. {
  234. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalScale on a nil value" : e.Message);
  235. }
  236. }
  237. }