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 : TableAreaInheritance: MonoBehaviour → TableArea → DisplayArea
Remarks
DisplayArea is a marker subclass that identifies a TableArea as a display-only surface. It inherits all functionality from TableArea:
Collision-based item tracking —
OnTriggerEnter/OnTriggerExitautomatically add and removeShopItemwrappers asItemobjects enter and leave the collider.Item list management — Maintains a list of
ShopItementries that can be queried for availability and reservation status.Positioning — Provides
InnerSpotandOuterSpottransforms for item placement and approach points.Bounds — Exposes
GetBounds()from the requiredBoxCollider.
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
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)
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)
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
TradingArea — sibling
TableAreasubclass for trade exchangesTradeContext — trade data used by
TradingArea
Last updated