all files / node-csgo-parser/lib/ Rarity.js

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                 
'use strict';
/* jshint node: true */
 
/**
 * @typedef Rarity
 * @type Object
 * @property {String} techName Technical name of the rarity
 * @property {String} weaponName I18N name applied to a weapon
 * @property {String} miscName I18N name applied to others objects (Medal, Music, ...)
 * @property {String} defIndex
 * @property {String} color Hexadecimal color value that represent the quality
 */
 
/**
 * Standard return for a skin/paint
 * @class Weapon
 */
class Rarity {
	/**
	 * @constructor
	 */
	constructor(techName, weaponName, miscName, defIndex, color){
		this.techName = techName;
		this.weaponName = weaponName;
		this.miscName = miscName;
		this.defIndex = defIndex;
		this.color = color;
	}
}
 
module.exports = Rarity;