tf2-item-format
Version:
Format's TF2 items like backpack.tf does
16 lines (15 loc) • 695 B
TypeScript
import { ISchema } from '../../types/schema';
import Attributes from '../Attributes';
type SchemaEffectExceptions = {
item: Record<string, string[]>;
texture: Record<string, string[]>;
effect: Record<string, string[]>;
};
/**
* Iterates over effects object to get matching effect.
*/
export default function (name: string, attributes: Attributes): string | void;
export declare function getEffectExceptions(schema: ISchema): SchemaEffectExceptions;
export declare function isEffectException(schema: ISchema, effect: string, name: string, hasWear: boolean): [boolean, string | null];
export declare function findEffectExceptions(schema: ISchema): SchemaEffectExceptions;
export {};