UNPKG

@mann-conomy/tf-particle-effects

Version:

A Node.js wrapper for Team Fortress 2's in-game particle effects.

31 lines 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ParticleAttribute { constructor(id, name) { this.id = id; this.name = name; } getId() { return this.id; } getName() { return this.name; } json() { return { id: this.id, name: this.name }; } stringify() { return JSON.stringify(this); } toString() { return [this.id, this.name].join(";"); } copy() { return new ParticleAttribute(this.id, this.name); } } exports.default = ParticleAttribute; //# sourceMappingURL=particle-attribute.js.map