@mann-conomy/tf-particle-effects
Version:
A Node.js wrapper for Team Fortress 2's in-game particle effects.
20 lines (19 loc) • 743 B
TypeScript
import type { LanguageCode } from "@mann-conomy/tf-parser";
import type ParticleAttribute from "../classes/particle-attribute";
export type ParticleAttributeFilter = (attribute: string) => boolean;
export interface IParticleAttribute {
id: number;
name: string;
}
export interface IParticleEffect extends IParticleAttribute {
language: LanguageCode;
}
export type PartialParticleEffect = Partial<IParticleEffect>;
export type ParticleEffects = Record<LanguageCode, ParticleAttribute[]>;
export type IParticleEffects = Record<LanguageCode, IParticleAttribute[]>;
export interface IParticleFile {
name: string;
effects: ParticleEffects;
filter: ParticleAttributeFilter;
}
export type ParticleFileArray = IParticleFile[];