UIBigMapLineWrap.cs 5.9 KB

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