invertika_game.Game.MapManager.activateMap C# (CSharp) Method

activateMap() public static method

public static activateMap ( int mapId ) : bool
mapId int
return bool
        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;
            }
        }