TableNetwork

Network behaviour component for shop tables. Registers NetworkTrigger instances on all interaction contexts during initialization, enabling multiplayer interaction triggering for table interactions.

Definition

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

public class TableNetwork : ParagonNetworkBehaviour

Inheritance: NetworkBehaviourParagonNetworkBehaviour → TableNetwork

Remarks

TableNetwork follows the same pattern as ItemNetwork — it iterates all InteractionContext entries on the table's Interactable and attaches a NetworkTrigger to each, keyed by the interaction's concrete type name. This enables remote clients to trigger table interactions over the network.

Unlike ItemNetwork, which has separate Initialize() and OnSpawn() methods, TableNetwork performs all trigger registration in a single Initialize() call during Table.Awake().

Quick Lookup

Goal
How

Initialize network triggers

tableNetwork.Initialize(table) — called by Table.Awake()

Methods

Initialize

public void Initialize(Table table)

Stores the table and interactable references, then iterates all InteractionContext entries in the interaction table and adds a NetworkTrigger to each one.

Parameter
Type
Description

table

Table

The owning table

Pipeline:

Common Pitfalls

circle-exclamation
circle-exclamation
circle-exclamation

See Also

Last updated