five-on-it / packages/world/src/level / ShopDef
Interface: ShopDef
Defined in: packages/world/src/level.ts:590
A shop of the level (GAME_DESIGN §5.5, §14): a counter the interaction key opens into a panel of what it sells, each at the game's price, paid in the player's Cash. Not a placement: the server puts the counter there.
Properties
items
items:
string[]
Defined in: packages/world/src/level.ts:602
What it sells, by item id, in the order its panel lists them.
name
name:
string
Defined in: packages/world/src/level.ts:592
The node's name in the editor.
x
x:
number
Defined in: packages/world/src/level.ts:594
Where the counter stands on the ground (m).
y
y:
number
Defined in: packages/world/src/level.ts:596
The ground under it (m).
yaw
yaw:
number
Defined in: packages/world/src/level.ts:600
Which way it faces (rad, 0 faces +z): the side it serves from.
z
z:
number
Defined in: packages/world/src/level.ts:598
Where the counter stands on the ground (m).