public static int SetGroupBehaviorDict(IntPtr l)
    {
        int result;

        try
        {
            BattleTeam            battleTeam = (BattleTeam)LuaObject.checkSelf(l);
            Dictionary <int, int> groupBehaviorDict;
            LuaObject.checkType <Dictionary <int, int> >(l, 2, out groupBehaviorDict);
            battleTeam.SetGroupBehaviorDict(groupBehaviorDict);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }