csgo-items-parser
Version:
Extract Items/Skins/... from raw VDF data files
33 lines (27 loc) • 869 B
JavaScript
/* jshint node: true */
/**
* @typedef Weapon
* @type Object
* @property {String} name I18N name of the weapon
* @property {String} techName Technical name of the weapon
* @property {String} type Weapon category (Pistol, Rifle, SMG...)
* @property {String} defIndex Technical index in CSGO Schema
* @property {Array.<SkinPaint>} skins List of skins for this Weapon
*/
/**
* Standard return for a Weapon.
* @class
*/
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Weapon =
/** @constructor */
function Weapon(name, techName, type, defIndex, skins) {
_classCallCheck(this, Weapon);
this.name = name;
this.techName = techName;
this.type = type;
this.defIndex = defIndex;
this.skins = skins;
};
module.exports = Weapon;
;