Skip to content

ShopDefinition

public sealed class ShopDefinition

Namespace MapExpansions

A shop with a seller at its counter, as in the main world: while the seller stands at the counter the player can talk to them and buy, and the shop’s doors let the player in; otherwise the doors only let the player out. The seller’s day, including when they walk to the counter, is the expansion’s own schedule.

public string Id { get; set; }
public ShopKind Kind { get; set; }

Type: ShopKind

public string ShopCode { get; set; }

For ShopKind.Store: the code of the main-world shop whose goods are sold, such as “gas_mart_west”.

public string Seller { get; set; }

The NPC id of the seller.

public LocalPoint Counter { get; set; }

Type: LocalPoint

Where the seller stands behind the counter, facing the customers.

public float CounterReach { get; set; }

The seller counts as at the counter within this many metres of it.

public string ChoiceText { get; set; }

What the player says to buy. Empty uses the main world’s line for the kind.

public List<CopyDefinition> Copies { get; }

Type: CopyDefinition

The shop’s interior, doors and props. Doors among them follow the seller.

public string MainFrame { get; set; }

For ShopKind.Barbershop: the main-world barbershop whose screen opens, and the object of the expansion’s source that stands for it. The screen shows the player in the main barbershop’s chair through its camera; while it is open, chair and camera stand in the expansion’s shop as they stood in the main one.

public string Onto { get; set; }

See MainFrame.