/// <summary> /// Initializes a new instance of the <see cref="UnitData"/> class. /// </summary> /// <param name="resRef">Res reference.</param> /// <param name="firstName">First name.</param> /// <param name="lastName">Last name.</param> /// <param name="class">Class.</param> /// <param name="portrait">Portrait.</param> /// <param name="movementSound">Movement sound.</param> /// <param name="sprite">Sprite.</param> /// <param name="unitType">Unit type.</param> /// <param name="attributeCollection">Attribute collection.</param> /// <param name="inventorySlots">Inventory slots.</param> /// <param name="abilityCollection">Ability collection.</param> private UnitData(string resRef, string firstName, string lastName, string @class, Sprite portrait, AudioClip movementSound, string sprite, UnitType unitType, AttributeCollection attributeCollection, InventorySlots inventorySlots, AbilityCollection abilityCollection) { ResRef = resRef; FirstName = firstName; LastName = lastName; Class = @class; Portrait = portrait; MovementSound = movementSound; Sprite = sprite; Type = unitType; AttributeCollection = attributeCollection; InventorySlots = inventorySlots; AbilityCollection = abilityCollection; }
/// <summary> /// Returns a deep copied instance. /// </summary> /// <returns>The copy.</returns> public UnitData DeepCopy() { return(new UnitData(ResRef, FirstName, LastName, Class, Portrait, MovementSound, Sprite, Type, AttributeCollection.DeepCopy(), InventorySlots.DeepCopy(), AbilityCollection.DeepCopy())); }
public void DoIceNova(int damage, Mobile caster, ArrayList targets) { AbilityCollection.AreaEffect(TimeSpan.FromSeconds(0.1), TimeSpan.FromSeconds(0.1), 0.1, caster.Map, caster.Location, 14000, 13, 2457, 4, 12, 2, true, true, true); Timer.DelayCall(TimeSpan.FromSeconds(1.5), new TimerStateCallback(IceNova_Callback), new object[] { caster, caster.Location, damage, targets }); }