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

        try
        {
            DataSectionBattle             dataSectionBattle = (DataSectionBattle)LuaObject.checkSelf(l);
            Dictionary <int, List <int> > teams;
            LuaObject.checkType <Dictionary <int, List <int> > >(l, 2, out teams);
            dataSectionBattle.InitTeams(teams);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }