Skip to main content

MovingLandmark

A class in Root.Township, Alta.Map.

A landmark on something that moves. Besides registering it re-syncs its position to players every second. Server side.

Constructors​

MemberWhat it is
MovingLandmark()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private Timeline.IEntry entryThe Timeline entry for the once-a-second sync.

Methods​

MemberWhat it is
protected override void Destroyed(NetworkEntity entity, bool isUnload)Deregisters the landmark (unless it is kept after unload and this is an unload) and, on the server, stops the sync timer.
protected override void Register()Registers with the LandmarkManager and starts a repeating ForceSync every second.