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
| Member | What it is |
|---|
private static HashSet<QuestMarker> activeMarkers | Quest markers currently being updated. |
private static IUnityUpdateMethod update | Handle for the registered update method. |
Methods
| Member | What 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
| Member | What 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. |