(key: string)
| 55 | } |
| 56 | |
| 57 | static splitKey(key: string) { |
| 58 | let [hatStyle, character] = key.split("."); |
| 59 | if (character.length === 0) { |
| 60 | // If the character is `.` then it will appear as a zero length string |
| 61 | // due to the way the split on `.` works |
| 62 | character = "."; |
| 63 | } |
| 64 | return { hatStyle: hatStyle as HatStyleName, character }; |
| 65 | } |
| 66 | |
| 67 | private async getActiveMap() { |
| 68 | // NB: We need to take a snapshot of the hat map before we make any |
no outgoing calls