Exemple #1
0
        /// <summary>
        /// Add the basin with Name and usertag UserTag. Also select it if SelectNOw = true.
        /// </summary>
        /// <param name="Name">The name of the basin to add.</param>
        /// <param name="UserTag">The name of the season to add (V3.0 Only)</param>
        /// <param name="SelectNow">Select this basin now</param>
        public void AddBasin(string Name, string UserTag, bool SelectNow = false)
        {
            // This is still terrible, but it's just temporary
            Basin Bs = GetBasinWithName(Name);

            Bs.LoadImage(Bs.ImagePath);
            Bs.UserTag = UserTag;
            InitBasin(Bs);
        }
Exemple #2
0
        /// <summary>
        /// Add the basin with Name. Also select it if SelectNow = true.
        /// </summary>
        /// <param name="Name">The name of the basin we wish to load.</param>
        /// <param name="SelectNow">Select the basin upon loading.</param>
        public void AddBasin(string Name, bool SelectNow = false)
        {
            // This is still terrible, but it's just temporary
            Basin Bs = GetBasinWithName(Name);

            if (Bs == null)
            {
                Error.Throw("Fatal Error", $"Attempted to add an invalid basin with name {Name}", ErrorSeverity.FatalError, 181);
            }

            Bs.LoadImage(Bs.ImagePath);

            InitBasin(Bs);
        }