DisplayArea

Concrete TableArea subclass for shop display surfaces. Inherits all item management, collision detection, and positioning behavior from TableArea without adding additional functionality.

Definition

Namespace: Paragon.Townskeep.ShopSystem Assembly: Townskeep.dll

public class DisplayArea : TableArea

Inheritance: MonoBehaviourTableAreaDisplayArea

Remarks

DisplayArea is a marker subclass that identifies a TableArea as a display-only surface. It inherits all functionality from TableArea:

  • Collision-based item trackingOnTriggerEnter / OnTriggerExit automatically add and remove ShopItem wrappers as Item objects enter and leave the collider.

  • Item list management — Maintains a list of ShopItem entries that can be queried for availability and reservation status.

  • Positioning — Provides InnerSpot and OuterSpot transforms for item placement and approach points.

  • Bounds — Exposes GetBounds() from the required BoxCollider.

DisplayArea serves as a semantic type to distinguish display surfaces from other TableArea types (e.g., TradingArea). This enables type-specific logic in interactions and agent actions.

Quick Lookup

Goal
How

Check if area has items

displayArea.HasAnyItem (inherited)

Check for unreserved items

displayArea.HasAvailableItem (inherited)

Get inner approach point

displayArea.InnerSpot (inherited)

Get outer approach point

displayArea.OuterSpot (inherited)

Get collider bounds

displayArea.GetBounds() (inherited)

Inherited Members

All public API is inherited from TableArea:

Properties (inherited)

Property
Type
Description

InnerSpot

Transform

Position inside the table area (for item placement)

OuterSpot

Transform

Position outside the table area (for approach waypoint)

HasAnyItem

bool

Whether the area contains any items

HasAvailableItem

bool

Whether any unreserved item exists

Methods (inherited)

Method
Description

DisplayItem(ShopItem)

Manually adds an item to the area

RemoveItem(ShopItem)

Manually removes an item from the area

GetBounds()

Returns the BoxCollider bounds

Usage Example

See Also

Last updated