GvGMarkWrap.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class GvGMarkWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(GvGMark), typeof(System.Object), "GvGMark");
  9. L.RegFunction("ToJson", ToJson);
  10. L.RegFunction("New", _CreateGvGMark);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("m_nMarkid", get_m_nMarkid, set_m_nMarkid);
  13. L.RegVar("m_nMarkNum", get_m_nMarkNum, set_m_nMarkNum);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int _CreateGvGMark(IntPtr L)
  18. {
  19. try
  20. {
  21. int count = LuaDLL.lua_gettop(L);
  22. if (count == 1)
  23. {
  24. JSONObject arg0 = (JSONObject)ToLua.CheckObject<JSONObject>(L, 1);
  25. GvGMark obj = new GvGMark(arg0);
  26. ToLua.PushObject(L, obj);
  27. return 1;
  28. }
  29. else if (count == 2)
  30. {
  31. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  32. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  33. GvGMark obj = new GvGMark(arg0, arg1);
  34. ToLua.PushObject(L, obj);
  35. return 1;
  36. }
  37. else
  38. {
  39. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GvGMark.New");
  40. }
  41. }
  42. catch (Exception e)
  43. {
  44. return LuaDLL.toluaL_exception(L, e);
  45. }
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int ToJson(IntPtr L)
  49. {
  50. try
  51. {
  52. ToLua.CheckArgsCount(L, 1);
  53. GvGMark obj = (GvGMark)ToLua.CheckObject<GvGMark>(L, 1);
  54. JSONObject o = obj.ToJson();
  55. ToLua.PushObject(L, o);
  56. return 1;
  57. }
  58. catch (Exception e)
  59. {
  60. return LuaDLL.toluaL_exception(L, e);
  61. }
  62. }
  63. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  64. static int get_m_nMarkid(IntPtr L)
  65. {
  66. object o = null;
  67. try
  68. {
  69. o = ToLua.ToObject(L, 1);
  70. GvGMark obj = (GvGMark)o;
  71. int ret = obj.m_nMarkid;
  72. LuaDLL.lua_pushinteger(L, ret);
  73. return 1;
  74. }
  75. catch(Exception e)
  76. {
  77. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkid on a nil value");
  78. }
  79. }
  80. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  81. static int get_m_nMarkNum(IntPtr L)
  82. {
  83. object o = null;
  84. try
  85. {
  86. o = ToLua.ToObject(L, 1);
  87. GvGMark obj = (GvGMark)o;
  88. int ret = obj.m_nMarkNum;
  89. LuaDLL.lua_pushinteger(L, ret);
  90. return 1;
  91. }
  92. catch(Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkNum on a nil value");
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int set_m_nMarkid(IntPtr L)
  99. {
  100. object o = null;
  101. try
  102. {
  103. o = ToLua.ToObject(L, 1);
  104. GvGMark obj = (GvGMark)o;
  105. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  106. obj.m_nMarkid = arg0;
  107. return 0;
  108. }
  109. catch(Exception e)
  110. {
  111. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkid on a nil value");
  112. }
  113. }
  114. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  115. static int set_m_nMarkNum(IntPtr L)
  116. {
  117. object o = null;
  118. try
  119. {
  120. o = ToLua.ToObject(L, 1);
  121. GvGMark obj = (GvGMark)o;
  122. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  123. obj.m_nMarkNum = arg0;
  124. return 0;
  125. }
  126. catch(Exception e)
  127. {
  128. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkNum on a nil value");
  129. }
  130. }
  131. }