源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

161 行
3.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_ResolutionWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Resolution), null);
  9. L.RegFunction("ToString", ToString);
  10. L.RegFunction("New", _CreateUnityEngine_Resolution);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("width", get_width, set_width);
  13. L.RegVar("height", get_height, set_height);
  14. L.RegVar("refreshRate", get_refreshRate, set_refreshRate);
  15. L.EndClass();
  16. }
  17. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  18. static int _CreateUnityEngine_Resolution(IntPtr L)
  19. {
  20. UnityEngine.Resolution obj = new UnityEngine.Resolution();
  21. ToLua.PushValue(L, obj);
  22. return 1;
  23. }
  24. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  25. static int ToString(IntPtr L)
  26. {
  27. try
  28. {
  29. ToLua.CheckArgsCount(L, 1);
  30. UnityEngine.Resolution obj = (UnityEngine.Resolution)ToLua.CheckObject(L, 1, typeof(UnityEngine.Resolution));
  31. string o = obj.ToString();
  32. LuaDLL.lua_pushstring(L, o);
  33. return 1;
  34. }
  35. catch(Exception e)
  36. {
  37. return LuaDLL.toluaL_exception(L, e);
  38. }
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int get_width(IntPtr L)
  42. {
  43. object o = null;
  44. try
  45. {
  46. o = ToLua.ToObject(L, 1);
  47. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  48. int ret = obj.width;
  49. LuaDLL.lua_pushinteger(L, ret);
  50. return 1;
  51. }
  52. catch(Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int get_height(IntPtr L)
  59. {
  60. object o = null;
  61. try
  62. {
  63. o = ToLua.ToObject(L, 1);
  64. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  65. int ret = obj.height;
  66. LuaDLL.lua_pushinteger(L, ret);
  67. return 1;
  68. }
  69. catch(Exception e)
  70. {
  71. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  72. }
  73. }
  74. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  75. static int get_refreshRate(IntPtr L)
  76. {
  77. object o = null;
  78. try
  79. {
  80. o = ToLua.ToObject(L, 1);
  81. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  82. int ret = obj.refreshRate;
  83. LuaDLL.lua_pushinteger(L, ret);
  84. return 1;
  85. }
  86. catch(Exception e)
  87. {
  88. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshRate on a nil value" : e.Message);
  89. }
  90. }
  91. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  92. static int set_width(IntPtr L)
  93. {
  94. object o = null;
  95. try
  96. {
  97. o = ToLua.ToObject(L, 1);
  98. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  99. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  100. obj.width = arg0;
  101. ToLua.SetBack(L, 1, obj);
  102. return 0;
  103. }
  104. catch(Exception e)
  105. {
  106. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  107. }
  108. }
  109. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  110. static int set_height(IntPtr L)
  111. {
  112. object o = null;
  113. try
  114. {
  115. o = ToLua.ToObject(L, 1);
  116. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  117. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  118. obj.height = arg0;
  119. ToLua.SetBack(L, 1, obj);
  120. return 0;
  121. }
  122. catch(Exception e)
  123. {
  124. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  125. }
  126. }
  127. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  128. static int set_refreshRate(IntPtr L)
  129. {
  130. object o = null;
  131. try
  132. {
  133. o = ToLua.ToObject(L, 1);
  134. UnityEngine.Resolution obj = (UnityEngine.Resolution)o;
  135. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  136. obj.refreshRate = arg0;
  137. ToLua.SetBack(L, 1, obj);
  138. return 0;
  139. }
  140. catch(Exception e)
  141. {
  142. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refreshRate on a nil value" : e.Message);
  143. }
  144. }
  145. }