Runtime Interfaces

API Reference

A stable service boundary lets game content interact with TIFE without depending on Portal internals.

commands.execute(input)

Command Service

Normalizes typed and clickable commands before parser execution.

world.get(entityId)

World Service

Reads rooms, objects, actors, exits, and relationships.

state.get(key)

State Service

Stores flags, counters, variables, and progression data.

events.emit(name,payload)

Event Service

Coordinates rules, UI updates, achievements, and story events.

saves.create(slot)

Save Service

Serializes game state using runtime-managed save formats.

ui.present(actions)

Interface Service

Displays narrative output and context-sensitive command choices.

This page defines the Phase 3 service map. Detailed signatures can evolve within the independently versioned TIFE specification.