LoopScrollRectDragEventInheritWrap.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class LoopScrollRectDragEventInheritWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(LoopScrollRectDragEventInherit), typeof(UnityEngine.MonoBehaviour), "LoopScrollRectDragEventInherit");
  9. L.RegFunction("GetInheritScrollRect", GetInheritScrollRect);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("sr", get_sr, set_sr);
  13. L.EndClass();
  14. }
  15. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  16. static int GetInheritScrollRect(IntPtr L)
  17. {
  18. try
  19. {
  20. ToLua.CheckArgsCount(L, 1);
  21. LoopScrollRectDragEventInherit obj = (LoopScrollRectDragEventInherit)ToLua.CheckObject<LoopScrollRectDragEventInherit>(L, 1);
  22. UnityEngine.UI.ScrollRect o = obj.GetInheritScrollRect();
  23. ToLua.Push(L, o);
  24. return 1;
  25. }
  26. catch (Exception e)
  27. {
  28. return LuaDLL.toluaL_exception(L, e);
  29. }
  30. }
  31. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  32. static int op_Equality(IntPtr L)
  33. {
  34. try
  35. {
  36. ToLua.CheckArgsCount(L, 2);
  37. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  38. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  39. bool o = arg0 == arg1;
  40. LuaDLL.lua_pushboolean(L, o);
  41. return 1;
  42. }
  43. catch (Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e);
  46. }
  47. }
  48. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  49. static int get_sr(IntPtr L)
  50. {
  51. object o = null;
  52. try
  53. {
  54. o = ToLua.ToObject(L, 1);
  55. LoopScrollRectDragEventInherit obj = (LoopScrollRectDragEventInherit)o;
  56. UnityEngine.UI.ScrollRect ret = obj.sr;
  57. ToLua.Push(L, ret);
  58. return 1;
  59. }
  60. catch(Exception e)
  61. {
  62. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sr on a nil value");
  63. }
  64. }
  65. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  66. static int set_sr(IntPtr L)
  67. {
  68. object o = null;
  69. try
  70. {
  71. o = ToLua.ToObject(L, 1);
  72. LoopScrollRectDragEventInherit obj = (LoopScrollRectDragEventInherit)o;
  73. UnityEngine.UI.ScrollRect arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckObject<UnityEngine.UI.ScrollRect>(L, 2);
  74. obj.sr = arg0;
  75. return 0;
  76. }
  77. catch(Exception e)
  78. {
  79. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sr on a nil value");
  80. }
  81. }
  82. }