Cast
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
Cast
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.cast.Cast — the people of Hidden Love, and the one field that changes what they look like.
bodyFor(key: ?) → void
| arg | type | description |
|---|---|---|
| key | ? |
dress(target: ?, identity: ?) → void
| arg | type | description |
|---|---|---|
| target | ? | |
| identity | ? |
place(key: ?, mark: ?) → void
One villager: an entity with a Name, a body, and a mark to stand on. Idempotent — a reload finds the entity already there and leaves it alone rather than stacking a second one behind it.
| arg | type | description |
|---|---|---|
| key | ? | |
| mark | ? |
awake( ) → void
start( ) → void
bodyOf(who: string) → any
The body a character is wearing right now.
| arg | type | description |
|---|---|---|
| who | string | A key from Game.CAST, e.g. "nadia". |
examples
entity.find("Cast").component.get("game.cast.Cast"):bodyOf("nadia")setBody(who: string, identity: any) → boolean
Swap one character onto a different body, live, with no restart and no change to any other system. This is the call that makes the placeholder a placeholder rather than a decision.
| arg | type | description |
|---|---|---|
| who | string | A key from Game.CAST. |
| identity | any | The new avatar or bundle identity, or a resolved asset ref. |
examples
cast:setBody("nadia", asset.resolve("villager_adult_female", "avatar"))placed( ) →
Every character this component has placed, by Game.CAST key.
examples
cast:placed()
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.