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

117 行
2.9 KiB

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