* Get a loaded thangType by slug. * @param {string} slug - Slug of a thangType * @returns {object|undefined} May return thangType or undefined
(slug)
| 176 | * @returns {object|undefined} May return thangType or undefined |
| 177 | */ |
| 178 | getThangType (slug) { |
| 179 | const thangType = this.loadedThangTypes.get(slug) |
| 180 | if (!thangType) { |
| 181 | console.error(`Make sure '${slug}' thangType is loaded before getting`) |
| 182 | return |
| 183 | } |
| 184 | return thangType |
| 185 | } |
| 186 | } |
no test coverage detected