UNPKG

@mann-conomy/tf-war-paints

Version:

A static Node.js wrapper for Team Fortress 2's many War Paints.

20 lines 551 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const enums_1 = require("../resources/enums"); class PaintAttribute { constructor(options = {}) { this.id = options.id || enums_1.InvalidWarPaint.Id; this.name = options.name || enums_1.InvalidWarPaint.Name; } isValid() { return this.id >= 0 && this.name.length > 0; } getId() { return this.id; } getName() { return this.name; } } exports.default = PaintAttribute; //# sourceMappingURL=attribute.js.map