UNPKG

@mann-conomy/tf-particle-effects

Version:

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

21 lines (20 loc) 801 B
import type { LanguageCode } from "@mann-conomy/tf-parser"; import type { IParticleEffect, IParticleAttribute, IParticleEffects, PartialParticleEffect } from "../types/particle"; export default class ParticleEffect { private readonly id; private readonly name; private readonly language; private readonly particles; constructor(effect: PartialParticleEffect | undefined, particles: IParticleEffects); eval(strict?: boolean): boolean; find(strict?: boolean): IParticleAttribute; translate(language: LanguageCode, strict?: boolean): IParticleAttribute; all(): IParticleAttribute[]; getId(): number; getName(): string; getLanguage(): LanguageCode; json(): IParticleEffect; stringify(): string; toString(): string; copy(): ParticleEffect; }