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

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7
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 32                                            107831× 107831× 107831× 107831× 107831× 107831×      
'use strict';
/* jshint node: true */
 
/**
 * @typedef SkinPaint
 * @type Object
 * @property {String} name I18N name of the paint/skin
 * @property {String} techName Technical name of the paint/skin
 * @property {String} weaponTechName Technical name of the weapon
 * @property {String} fullName I18N Full name of the Skin (doesn't contain Statrak or (Quality) information. Beside, knifes got their little star :p)
 * @property {String} rarity Rarity of this paint (inexplicably, some of them are wrong on items file regarding in-game reality)
 */
 
/**
 * Standard return for a skin/paint
 * @class Weapon
 */
class SkinPaint {
	/**
	 * @constructor
	 */
	constructor(name, techName, weaponTechName, fullName, defIndex, rarity){
		this.name = name;
		this.techName = techName;
		this.weaponTechName = weaponTechName;
		this.fullName = fullName;
		this.defIndex = defIndex;
		this.rarity = rarity;
	}
}
 
module.exports = SkinPaint;