Example #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="Spell" /> class.
        ///     Instances a new Spell
        /// </summary>
        /// <param name="spellDataWrapper">
        ///     SpellSlot Wrapper
        /// </param>
        /// <param name="hitChance">
        ///     Minimum Hit Chance
        /// </param>
        public Spell(SpellDataWrapper spellDataWrapper, HitChance hitChance = HitChance.Medium)
        {
            this.Slot  = spellDataWrapper.Slot;
            this.Range = spellDataWrapper.Range;
            this.Width = spellDataWrapper.Width;
            this.Speed = spellDataWrapper.Speed;
            this.Delay = spellDataWrapper.Delay;

            this.MinHitChance = hitChance;
        }
Example #2
0
File: Spell.cs Project: 47110572/CN
        /// <summary>
        ///     Initializes a new instance of the <see cref="Spell" /> class.
        /// </summary>
        /// <param name="spellDataWrapper">
        ///     SpellSlot Wrapper
        /// </param>
        /// <param name="hitChance">
        ///     Minimum Hit Chance
        /// </param>
        public Spell(SpellDataWrapper spellDataWrapper, HitChance hitChance = HitChance.Medium)
        {
            this.Slot = spellDataWrapper.Slot;
            this.Range = spellDataWrapper.Range;
            this.Width = spellDataWrapper.Width;
            this.Speed = spellDataWrapper.Speed;
            this.Delay = spellDataWrapper.Delay;

            this.MinHitChance = hitChance;
        }