Skip to main content

MapLandmarkDisplay

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​

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

Fields​

4 private and internal fields
MemberWhat it is
private Dictionary<uint, MarkerInfo> activeMarkersMarkers shown, by index.
private Material belowMaskMaterialMaterial for markers below the mask.
private MapBoard mapBoardThe map board this display belongs to.
private Image markerPrefabImage prefab for a marker.

Properties​

MemberWhat 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​

MemberWhat it is
override void Initialize()Hooks the map board's client setup.
5 private and internal methods
MemberWhat 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: