@mann-conomy/tf-war-paints
Version:
A static Node.js wrapper for Team Fortress 2's many War Paints.
18 lines (17 loc) • 860 B
TypeScript
export type PrototypeLanguage = "ukrainian" | "turkish" | "thai" | "tchinese" | "swedish" | "spanish" | "schinese" | "russian" | "romanian" | "portuguese" | "polish" | "norwegian" | "latam" | "korean" | "italian" | "hungarian" | "greek" | "german" | "french" | "finnish" | "English" | "dutch" | "danish" | "czech" | "bulgarian" | "brazilian";
export type PrototypeTokens = Record<string, string>;
export interface PrototypeObjectDefinitions {
lang: {
Language: PrototypeLanguage;
Tokens: PrototypeTokens;
};
}
export type PrototypeObjectDefinitionsFilter = (definition: string, name: string) => boolean;
export interface IPaintAttributes {
id: number;
name: string;
}
export interface IWarPaint extends IPaintAttributes {
language: PrototypeLanguage;
}
export type WarPaints = Record<PrototypeLanguage, IPaintAttributes[]>;