Relations

Reference index

attachedTo

relation attachedTo(one: Entity, other: Entity) many_to_many · Source

Records attachment between two entities.

connects

relation connects(door: Entity, room: Entity) many_to_many · Source

Associates a door with every room from which it can be used.

contains

relation contains(container: Entity, item: Entity) one_to_many reverse location · Source

Places an item in one container; read the inverse through location.

dialogueActive

relation dialogueActive(controller: Entity, conversation: Entity) one_to_one · Source

Internal implementation detail; no supported authoring contract is documented.

dialogueAsker

relation dialogueAsker(controller: Entity, asker: Entity) one_to_one · Source

Internal implementation detail; no supported authoring contract is documented.

dialogueUsed

relation dialogueUsed(asker: Entity, choice: Entity) many_to_many · Source

Internal implementation detail; no supported authoring contract is documented.

dialogueVoice

relation dialogueVoice(owner: Entity, voice: Entity) one_to_many reverse voiceOwner · Source

Binds a private speaker to its owner; voiceOwner is the inverse.

exits

relation exits(from: Entity, to: Entity, way: Direction) one_to_one · Source

Connects rooms by a direction for travel.

knows

relation knows(knower: Entity, subject: Entity) many_to_many · Source

Records explicit knowledge of another entity.

presentIn

relation presentIn(thing: Entity, room: Entity) many_to_many · Source

Places a MultiLoc in several rooms without changing containment.

vocab

relation vocab(entity: Entity, word: Text, part: Vocabulary) many_to_many · Source

Assigns noun and adjective words to an entity.