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

105 lines
2.6 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class TextSpacingWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(TextSpacing), typeof(UnityEngine.UI.BaseMeshEffect));
  9. L.RegFunction("ModifyMesh", ModifyMesh);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("Spacing", get_Spacing, set_Spacing);
  13. L.EndClass();
  14. }
  15. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  16. static int ModifyMesh(IntPtr L)
  17. {
  18. try
  19. {
  20. int count = LuaDLL.lua_gettop(L);
  21. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(TextSpacing), typeof(UnityEngine.UI.VertexHelper)))
  22. {
  23. TextSpacing obj = (TextSpacing)ToLua.ToObject(L, 1);
  24. UnityEngine.UI.VertexHelper arg0 = (UnityEngine.UI.VertexHelper)ToLua.ToObject(L, 2);
  25. obj.ModifyMesh(arg0);
  26. return 0;
  27. }
  28. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(TextSpacing), typeof(UnityEngine.Mesh)))
  29. {
  30. TextSpacing obj = (TextSpacing)ToLua.ToObject(L, 1);
  31. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.ToObject(L, 2);
  32. obj.ModifyMesh(arg0);
  33. return 0;
  34. }
  35. else
  36. {
  37. return LuaDLL.luaL_throw(L, "invalid arguments to method: TextSpacing.ModifyMesh");
  38. }
  39. }
  40. catch(Exception e)
  41. {
  42. return LuaDLL.toluaL_exception(L, e);
  43. }
  44. }
  45. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  46. static int op_Equality(IntPtr L)
  47. {
  48. try
  49. {
  50. ToLua.CheckArgsCount(L, 2);
  51. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  52. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  53. bool o = arg0 == arg1;
  54. LuaDLL.lua_pushboolean(L, o);
  55. return 1;
  56. }
  57. catch(Exception e)
  58. {
  59. return LuaDLL.toluaL_exception(L, e);
  60. }
  61. }
  62. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  63. static int get_Spacing(IntPtr L)
  64. {
  65. object o = null;
  66. try
  67. {
  68. o = ToLua.ToObject(L, 1);
  69. TextSpacing obj = (TextSpacing)o;
  70. float ret = obj.Spacing;
  71. LuaDLL.lua_pushnumber(L, ret);
  72. return 1;
  73. }
  74. catch(Exception e)
  75. {
  76. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Spacing on a nil value" : e.Message);
  77. }
  78. }
  79. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  80. static int set_Spacing(IntPtr L)
  81. {
  82. object o = null;
  83. try
  84. {
  85. o = ToLua.ToObject(L, 1);
  86. TextSpacing obj = (TextSpacing)o;
  87. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  88. obj.Spacing = arg0;
  89. return 0;
  90. }
  91. catch(Exception e)
  92. {
  93. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Spacing on a nil value" : e.Message);
  94. }
  95. }
  96. }