Skip to content

Model entity-creating display actions: Create In-World Text, HUD Text, Effect, Beam, Icon and ids #118

Closed

Description

@e54-bot

Problem

Bastion on the committed docs/scenario-examples/valid/bastion.json now runs 30 ticks (after #116) and stops:

not_modeled — action createInWorldText, tick 30, rule 168 [Event/先知] Attach prophet next-event text, eventPlayer p2, action 1.

Scope

Model the entity-creating presentation actions as a class, not one at a time:

  • Create In-World Text, Create HUD Text, Create Effect, Create Beam Effect, Create Icon, Create Progress Bar In-World Text, Create Progress Bar HUD Text, Create Map Text and any other action in the catalog that creates a display entity.
  • Each creates an entity with an id. Record the creation in the trace (kind, visible-to, position/header/text as opaque display values from Model display-only value producers (Icon String, Custom Color, ...) as opaque display values #113) so the viewer can list "what is on screen".
  • Support the readers that depend on the creation: Last Text ID, Last Created Entity, and the Destroy ... / Set ... Text / Update ... counterparts that take that id. A reader that cannot be answered stays not_modeled and names the construct.
  • No guessed defaults. Anything whose result is not measured is not_modeled; modeled-not-measured choices go in docs/findings.md.

Acceptance

  • Bastion advances past rule 168 at tick 30; the next stop (or completion) is recorded in the PR body, taken from a real rerun.
  • Trace shows each created entity with its id and creator.
  • Tests for creation, id readback, destroy by id, and a stop on an unmodeled reader.
  • Docs (simulator-interface.md, trace-format.md) updated; size guards respected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions