Skip to main content

Module engine

Module engine 

Source
Expand description

The emoji model + the three ways to move it around: build (EmojiBuilder), serialize (EmojiExporter), store (Registry), plus sprite helpers.

Modules§

sprites
Sprite atlas helpers: frame geometry and frame extraction. Used by the renderers; kept renderer-agnostic so a future GPU renderer reuses them.

Structs§

Emoji
An emoji: a name plus an ordered list of typed blocks.
EmojiBuilder
Fluent builder. build() is infallible: validation happens in the add_* methods, which repair inconsistent input (documented per method) instead of panicking.
EmojiExporter
Stateless serializer/deserializer for Emoji.
Registry
The registry. Cheap to construct; all state lives on disk.
RegistryEntry
One entry in the registry.