static int BuildArmatureComponent(IntPtr L) { try { ToLua.CheckArgsCount(L, 7); DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject(L, 1, typeof(DragonBones.UnityFactory)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); UnityEngine.GameObject arg4 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 6, typeof(UnityEngine.GameObject)); bool arg5 = LuaDLL.luaL_checkboolean(L, 7); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1, arg2, arg3, arg4, arg5); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int BuildArmatureComponent(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0); ToLua.Push(L, o); return(1); } else if (count == 3) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1); ToLua.Push(L, o); return(1); } else if (count == 4) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else if (count == 5) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return(1); } else if (count == 6) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); UnityEngine.GameObject arg4 = (UnityEngine.GameObject)ToLua.CheckObject(L, 6, typeof(UnityEngine.GameObject)); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, o); return(1); } else if (count == 7) { DragonBones.UnityFactory obj = (DragonBones.UnityFactory)ToLua.CheckObject <DragonBones.UnityFactory>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); string arg3 = ToLua.CheckString(L, 5); UnityEngine.GameObject arg4 = (UnityEngine.GameObject)ToLua.CheckObject(L, 6, typeof(UnityEngine.GameObject)); bool arg5 = LuaDLL.luaL_checkboolean(L, 7); DragonBones.UnityArmatureComponent o = obj.BuildArmatureComponent(arg0, arg1, arg2, arg3, arg4, arg5); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DragonBones.UnityFactory.BuildArmatureComponent")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }