@juice789/tf2items
Version:
tf2 item schema thingys
13 lines (10 loc) • 360 B
JavaScript
import schema from './schema.json' with { type: 'json' }
export const safeItems = new Proxy(schema.items, {
get(receiver, name) {
return name in receiver ? receiver[name] : {
defindex: name,
item_name: 'Undefined item'
}
}
})
export const { particleEffects, textures, collections, items } = schema