ModelMgrWrap.cs 2.4 KB

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