Пример #1
0
    public static int InitGuildMassiveCombatLastHeroInfo(IntPtr l)
    {
        int result;

        try
        {
            GuildMassiveCombatLastHeroUIController guildMassiveCombatLastHeroUIController = (GuildMassiveCombatLastHeroUIController)LuaObject.checkSelf(l);
            Hero hero;
            LuaObject.checkType <Hero>(l, 2, out hero);
            bool isUsed;
            LuaObject.checkType(l, 3, out isUsed);
            bool isPowerUp;
            LuaObject.checkType(l, 4, out isPowerUp);
            guildMassiveCombatLastHeroUIController.InitGuildMassiveCombatLastHeroInfo(hero, isUsed, isPowerUp);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }