Skip to main content

QuestMarkerDataUpdater

A static class in Root.Township, the global namespace.

Client: static updater that feeds the local player's head position to every active quest marker each frame, while any markers exist.

Fields​

2 private and internal fields
MemberWhat it is
private static HashSet<QuestMarker> activeMarkersQuest markers currently being updated.
private static IUnityUpdateMethod updateHandle for the registered update method.

Methods​

MemberWhat it is
static void AddMarker(QuestMarker marker)Adds a marker; the first one starts listening for the local player.
static void RemoveMarker(QuestMarker marker)Removes a marker; the last one stops the updates.
4 private and internal methods
MemberWhat it is
private static void PlayerControllerChanged(PlayerController newPlayerController)Starts the per-frame update when there is a local player, stops it when there isn't.
private static void RegisterPlayerControllerEvent()Subscribes to local player changes and applies the current player.
private static void UnregisterPlayerControllerEvent()Unsubscribes from local player changes and stops the update.
private static void UpdateMarker()Calls UpdateMarker on each active marker with the local player's head position.