Viv JavaScript Runtime - v0.10.2
    Preparing search index...

    Interface CharacterView

    A read-only entity view for a character in a simulated storyworld.

    For details on semantics and constraints, see EntityView, which this interface extends.

    interface CharacterView {
        entityType: Character;
        id: string;
        location: string;
        memories: CharacterMemories;
        [key: string]: ExpressionValue;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: ExpressionValue

      Additional properties whose structure depends entirely on the host application, with the caveat that the Viv runtime expects a plain object all the way down. As such, the values embedded here should not include types like functions or members of custom classes, but rather exclusively the types defined in the ExpressionValue union.

    Index

    Properties

    entityType: Character

    Discriminator specifying the character entity type.

    id: string

    A unique identifier for the entity.

    location: string

    The entity ID for the current location of the character.

    Viv assumes that each character is in a discrete location at any given point, and that the location is itself an entity for which a LocationView may be requested.

    The character's memories for all the actions they know about.