/// <summary> /// Prototyping constructor. /// Initializes a new instance of the <see cref="RPG.ItemSystem.ISWeapon"/> class using values of the other instance of that class. /// </summary> /// <param name="RHS">Instance, used as a prototype.</param> public ISWeapon(ISWeapon RHS) { base.Clone (RHS); Clone (RHS); }
/// <summary> /// Makes this instance a clone of the specified Prototype. /// </summary> /// <param name="Prototype">Prototype.</param> public void Clone(ISWeapon Prototype) { m_MinDamage = Prototype.MinDamage; m_MaxDamage = Prototype.MaxDamage; m_CurrentDurability = Prototype.CurrentDurability; m_MaximumDurability = Prototype.MaximumDurability; m_Prefab = Prototype.Prefab; }