Source: Weapon.js

/**
 * Represents a player's used weapon stats
 * @module
 */
export default class Weapon {
  /**
   *
   * @param {Object} weapon The weapon stats being parsed
   */
  constructor(weapon) {
    /**
     * Weapon unique name
     * @type {String}
     */
    this.uniqueName = weapon.type;

    /**
     * Earned XP with weapon
     * @type {number}
     */
    this.xp = weapon.xp;

    /**
     * Time using this weapon
     * @type {number}
     */
    this.equiptime = weapon.equipTime;

    /**
     * Headshots using this weapon
     * @type {number}
     */
    this.headShots = weapon.headShots;

    /**
     * Hits using weapon
     * @type {number}
     */
    this.hits = weapon.hits;

    /**
     * Assists using weapon
     * @type {number}
     */
    this.assists = weapon.assists;

    /**
     * Kills with weapon
     * @type {number}
     */
    this.kills = weapon.kills;

    /**
     * Shots fired
     * @type {number}
     */
    this.fired = weapon.fired;
  }
}