@kurgm/kage-engine / Buhin
A key-value store that maps a glyph name to a string of KAGE data.
• new Buhin()
▸ push(name
, data
): void
Adds or updates and element with a given glyph name and KAGE data. It is an alias of set method.
Name | Type | Description |
---|---|---|
name |
string |
The name of the glyph. |
data |
string |
The KAGE data. |
void
▸ search(name
): string
Search the store for a specified glyph name and returns the corresponding KAGE data.
Name | Type | Description |
---|---|---|
name |
string |
The name of the glyph to be looked up. |
string
The KAGE data if found, or an empty string if not found.
▸ set(name
, data
): void
Adds or updates an element with a given glyph name and KAGE data.
Name | Type | Description |
---|---|---|
name |
string |
The name of the glyph. |
data |
string |
The KAGE data. |
void