Skip to main content

PositionRestrictor.SyncArgs

A private struct in Root.Township, Alta.Pages. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Message data for PositionRestrictor syncs (reset location, haptics, item registration): an entity, an on or off flag and a position.

Constructors​

MemberWhat it is
SyncArgs(NetworkEntity entity, bool isEnabled)Creates a PositionRestrictor.SyncArgs from entity, isEnabled and position.
SyncArgs(NetworkEntity entity, bool isEnabled, Vector3 position)Creates a PositionRestrictor.SyncArgs from entity, isEnabled and position.

Fields​

MemberWhat it is
NetworkEntity entityThe item the message is about.
bool isEnabledOn or off for the message, such as whether the item is now restricted.
Vector3 positionPosition to reset to, zero when unused.

Used in​

Members of other types that take, return or hold a SyncArgs: