Skip to main content

Shop2Consts

Namespace with shop-specific constants.

Index

Variables

BuyGroups

BuyGroups: Record<string, { Assets: readonly ServerItemBundle[]; Value: number }> = {}

A record mapping Asset.BuyGroup names to the asset's value and all members of the buygroup. Only includes buy groups with at least 2 members.

BuyModeCycleOrder

BuyModeCycleOrder: readonly ShopMode[] = ...

A list denoting the rotation order between the respective shop modes.

ClothesCycleOrder

ClothesCycleOrder: readonly { Callback: (C: Character, items: Item[]) => void; Mode: ShopClothesMode }[] = ...

A list denoting the rotation order (and their callbacks) between the respective clothing modes.

Grid

Grid: { height: number; itemHeight: number; itemWidth: number; width: number; x: number; y: number } = ...

Grid parameters for the to-be displayed shop items


Type declaration

  • height: number
  • itemHeight: number
  • itemWidth: number
  • width: number
  • x: number
  • y: number

ItemColorCoords

ItemColorCoords: RectTuple = ...

Coordinates for the Color mode

Keys

Keys: Set<string> = ...

A set with the group + asset names of all asset keys.

Remotes

Remotes: Set<string> = ...

A set with the group + asset names of all asset remotes.