Submodule tracking data related to glyphs, for example learned/enabled ones. Accessible through mod.game.glyphs
.
You need to specifically request this submodule during your module's initialization by calling mod.game.initialize
!
- Returns whether or not the glyph with the given ID is known.
- Exemplary usage:
mod.game.glyphs.isKnown(12345)
- Returns whether or not the glyph with the given ID is known and enabled.
- Exemplary usage:
mod.game.glyphs.isEnabled(12345)
Each of the following attributes can be accessed through, for example, mod.game.glyphs.known
.
known
: ID -> Enabled object containing all known glyphsenabled
: array containing the IDs of all currently enabled glyphs
- Emitted when the list of known/enabled glyphs changes
- Exemplary usage:
mod.game.glyphs.on('change', () => { ... })
- Parameters: None.