public static bool activateMap(int mapId)
{
MapComposite composite=maps[mapId];
if(composite.isActive())
{
return true;
}
if(composite.activate())
{
Logger.Write(LogLevel.Information, "Activated map {0} (id {1})", composite.getName(), mapId);
return true;
}
else
{
Logger.Write(LogLevel.Warning, "Couldn't activate invalid map {0} (id {1})", composite.getName(), mapId);
return false;
}
}