Exemple #1
0
    static int AddDragonBonesData(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                DragonBones.BaseFactory     obj  = (DragonBones.BaseFactory)ToLua.CheckObject <DragonBones.BaseFactory>(L, 1);
                DragonBones.DragonBonesData arg0 = (DragonBones.DragonBonesData)ToLua.CheckObject <DragonBones.DragonBonesData>(L, 2);
                obj.AddDragonBonesData(arg0);
                return(0);
            }
            else if (count == 3)
            {
                DragonBones.BaseFactory     obj  = (DragonBones.BaseFactory)ToLua.CheckObject <DragonBones.BaseFactory>(L, 1);
                DragonBones.DragonBonesData arg0 = (DragonBones.DragonBonesData)ToLua.CheckObject <DragonBones.DragonBonesData>(L, 2);
                string arg1 = ToLua.CheckString(L, 3);
                obj.AddDragonBonesData(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DragonBones.BaseFactory.AddDragonBonesData"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemple #2
0
 static int AddDragonBonesData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DragonBones.BaseFactory     obj  = (DragonBones.BaseFactory)ToLua.CheckObject(L, 1, typeof(DragonBones.BaseFactory));
         DragonBones.DragonBonesData arg0 = (DragonBones.DragonBonesData)ToLua.CheckObject(L, 2, typeof(DragonBones.DragonBonesData));
         string arg1 = ToLua.CheckString(L, 3);
         obj.AddDragonBonesData(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }