Exemple #1
0
        /// <summary>
        /// Adds a settler to the action.
        /// </summary>
        /// <param name="settler">The settler.</param>
        /// <returns><c>True</c> if success; <c>False</c> otherwise.</returns>
        internal bool AddSettler(SettlerPivot settler)
        {
            bool canWork = !settler.BusyOnAction;

            if (canWork)
            {
                _settlers.Add(settler);
                settler.SetAction(this);
            }
            return(canWork);
        }