import{ArmorStand as e}from"./armor_stand";import{ChoppingBoard as r}from"./chopping_board";import{GlassCase as t}from"./glass_case";import{Easel as s}from"./easel";import{Pillow as i}from"./pillow";import{Plate as o}from"./plate";import{ArmourTypes as n,Colours as a,WeaponStoneTypes as p,WoodTypes as m}from"./variants";import{WeaponStone as g}from"./weapon_stone";import{WeaponRack as h}from"./weapon_rack";import{WeaponStand as w}from"./weapon_stand";import{GlassTable as f}from"./glass_table";export class DisplayRegistry{_registered={};constructor(){Object.values(n).forEach(r=>{this.register(new e(r))}),Object.values(a).forEach(e=>{this.register(new t(e)),this.register(new f(e)),this.register(new i(e))}),Object.values(p).forEach(e=>{this.register(new g(e))}),Object.values(m).forEach(e=>{this.register(new r(e)),this.register(new s(e)),this.register(new h(e)),this.register(new w(e))}),this.register(new t),this.register(new f),this.register(new f("top")),this.register(new o)}register(e){if(void 0===e.displayContext()){console.warn(`${e.typeId()} returned an undefined display context`);return}this._registered[e.typeId()]=e}fromTypeId(e){return this._registered[e]}}export const displayRegistry=new DisplayRegistry;