Skip to content

Latest commit

 

History

History
99 lines (56 loc) · 1.73 KB

Buhin.md

File metadata and controls

99 lines (56 loc) · 1.73 KB

@kurgm/kage-engine / Buhin

Class: Buhin

A key-value store that maps a glyph name to a string of KAGE data.

Table of contents

Constructors

Methods

Constructors

constructor

new Buhin()

Defined in

buhin.ts:8

Methods

push

push(name, data): void

Adds or updates and element with a given glyph name and KAGE data. It is an alias of set method.

Parameters

Name Type Description
name string The name of the glyph.
data string The KAGE data.

Returns

void

Defined in

buhin.ts:43


search

search(name): string

Search the store for a specified glyph name and returns the corresponding KAGE data.

Parameters

Name Type Description
name string The name of the glyph to be looked up.

Returns

string

The KAGE data if found, or an empty string if not found.

Defined in

buhin.ts:30


set

set(name, data): void

Adds or updates an element with a given glyph name and KAGE data.

Parameters

Name Type Description
name string The name of the glyph.
data string The KAGE data.

Returns

void

Defined in

buhin.ts:20