A class in Root.Township, Alta.Map.
Keeps the list of landmark markers to show on a map board, following the client landmark manager. Client side.
Constructors
| Member | What it is |
|---|
MapLandmarkDisplay() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private Dictionary<uint, MarkerInfo> activeMarkers | Markers shown, by index. |
private Material belowMaskMaterial | Material for markers below the mask. |
private MapBoard mapBoard | The map board this display belongs to. |
private Image markerPrefab | Image prefab for a marker. |
Properties
| Member | What it is |
|---|
IEnumerable<MarkerInfo> AboveTheMaskMarkers { get; } | Active markers drawn above the map mask. |
IEnumerable<MarkerInfo> BelowTheMaskMarkers { get; } | Active markers drawn below the map mask. |
Methods
| Member | What it is |
|---|
override void Initialize() | Hooks the map board's client setup. |
5 private and internal methods
| Member | What it is |
|---|
private void AddMarker(MarkerInfo info) | Adds a marker if it has a discovered icon. |
private void LandmarkChanged(MarkerInfo info) | Adds a new marker or removes one whose icon was cleared. |
private void OnDestroy() | Unhooks from the client landmark manager. |
private void RemoveMarker(MarkerInfo info) | Removes a marker from the active list. |
private void Setup(MapBoard mapBoard) | On client setup, subscribes to marker changes and adds all known markers. |
Used in
Members of other types that take, return or hold a MapLandmarkDisplay: