Profectus / game/layers / getLayer
getLayer<T>(layerID): T
T
layerID
Convenience method for getting a layer by its ID with correct typing.
• T extends Layer
Layer
string
The ID of the layer to get.
profectus/src/game/layers.tsx:338