Esempio n. 1
0
        /// <summary>
        /// Creates a new aura update state data structure.
        /// </summary>
        /// <param name="slotIndex">The slot index.</param>
        /// <param name="auraSpellId">The spell id.</param>
        /// <param name="state">The application state data.</param>
        public AuraUpdateData(byte slotIndex, int auraSpellId, [NotNull] AuraApplicationStateUpdate state)
        {
            //Cannot be 0 if the aura has state.
            if (auraSpellId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(auraSpellId));
            }

            SlotIndex   = slotIndex;
            AuraSpellId = auraSpellId;
            State       = state ?? throw new ArgumentNullException(nameof(state));
        }
Esempio n. 2
0
 public AuraUpdateData(byte slotIndex)
 {
     SlotIndex   = slotIndex;
     AuraSpellId = 0;
     State       = null;
 }