Exemple #1
0
        /// <summary>
        /// Adds global bonus.
        /// </summary>
        /// <param name="identifier"></param>
        /// <param name="name"></param>
        /// <param name="stat"></param>
        /// <param name="multiplier"></param>
        public void AddBonus(string identifier, string name, GlobalBonusStat stat, float multiplier)
        {
            var bonus = new GlobalBonus(identifier, name, stat, multiplier);

            lock (_bonuses)
                _bonuses.Add(bonus);
        }
Exemple #2
0
		/// <summary>
		/// Adds global bonus.
		/// </summary>
		/// <param name="identifier"></param>
		/// <param name="name"></param>
		/// <param name="stat"></param>
		/// <param name="multiplier"></param>
		public void AddBonus(string identifier, string name, GlobalBonusStat stat, float multiplier)
		{
			var bonus = new GlobalBonus(identifier, name, stat, multiplier);
			lock (_bonuses)
				_bonuses.Add(bonus);
		}