Class MapContent
Turns the map's non-entity content — authored landmarks and the player's own notes — into the same snapshots the marker filter produces for live objects.
public static class MapContent
- Inheritance
-
MapContent
- Inherited Members
Remarks
Kept apart from MapMarkerFilter because the questions are different. The filter's job is to decide what a player is allowed to know about other entities, and everything in it is about relationships, ranges and staleness. Nothing here is a secret from anybody: a landmark is scene data and a note is something the player wrote. Mixing them would put content with no visibility rules through a class whose entire purpose is visibility rules.
Fields
NoteColors
The colours a note's pin may be drawn in.
public static readonly Color[] NoteColors
Field Value
- Color[]
Remarks
A fixed palette rather than a colour picker. The pins are drawn at fourteen points over terrain of every possible hue, and a player who picks their own colour will eventually pick one that is invisible against the ground they put it on. These are chosen to stay legible against both the dark water and the bright sand a map contains.
Methods
AppendNotes(List<MapMarkerSnapshot>, IReadOnlyList<MapNote>, bool)
Adds the player's notes to a snapshot list.
public static void AppendNotes(List<MapMarkerSnapshot> results, IReadOnlyList<MapNote> notes, bool forWorldMap)
Parameters
resultsList<MapMarkerSnapshot>The list to append to.
notesIReadOnlyList<MapNote>The notes for the current scene.
forWorldMapboolTrue for the world map, false for the minimap.
AppendPointsOfInterest(List<MapMarkerSnapshot>, WorldMapDefinition, FogOfWarMap, bool)
Adds a scene's authored landmarks to a snapshot list, from its map definition only.
public static void AppendPointsOfInterest(List<MapMarkerSnapshot> results, WorldMapDefinition definition, FogOfWarMap fog, bool forWorldMap)
Parameters
resultsList<MapMarkerSnapshot>The list to append to.
definitionWorldMapDefinitionThe scene's map definition. May be null.
fogFogOfWarMapThe explored map, for the discovery rule. May be null.
forWorldMapboolTrue for the world map, false for the minimap.
Remarks
Kept for callers that have no scene details; see the overload that takes them.
AppendPointsOfInterest(List<MapMarkerSnapshot>, WorldSceneDetails, WorldMapDefinition, FogOfWarMap, bool, int)
Adds a scene's points of interest to a snapshot list: the scene details' own list first, then the map definition's, each landmark once.
public static void AppendPointsOfInterest(List<MapMarkerSnapshot> results, WorldSceneDetails details, WorldMapDefinition definition, FogOfWarMap fog, bool forWorldMap, int labelTier = 2147483647)
Parameters
resultsList<MapMarkerSnapshot>The list to append to.
detailsWorldSceneDetailsThe scene's details, holding its harvested points of interest. May be null.
definitionWorldMapDefinitionThe scene's map definition, for landmarks baked into it. May be null.
fogFogOfWarMapThe explored map, for the discovery rule. May be null.
forWorldMapboolTrue for the world map, false for the minimap.
labelTierintThe highest detail tier whose names are drawn; deeper tiers draw their icon without a name. See LabelTierForZoom(float, float).
Remarks
The details come first because they are where points of interest live now (PointsOfInterest): harvested by every cache rebuild whether or not a map is baked. The definition's list is what a baked scene carried before, and while a bake is present it holds the same hand-placed landmarks again, so a definition entry with the same name at the same place (to the metre) as one already added is skipped.
Two gates, and a point must pass both. The Cartography tier (VisibleContentTier,
0 to MaximumDetailTier) decides whether the point is known at all; every
point-of-interest tier (0 to 3, PointOfInterestKinds) is inside that range, and with no
Cartography provider every tier is shown. The discovery rule hides a point until the fog has
revealed its chunk; every generated point requires discovery (2026-10-10).
AppendWaypoints(List<MapMarkerSnapshot>, WorldSceneDetails, string, IWaypointController, bool)
Adds the waypoints the character has discovered in a scene to a snapshot list.
public static void AppendWaypoints(List<MapMarkerSnapshot> results, WorldSceneDetails details, string sceneName, IWaypointController waypoints, bool forWorldMap)
Parameters
resultsList<MapMarkerSnapshot>The list to append to.
detailsWorldSceneDetailsThe scene's details, holding its authored waypoints. May be null.
sceneNamestringThe scene's name, the key the unlock record is kept under.
waypointsIWaypointControllerThe character's unlock record. May be null.
forWorldMapboolTrue for the world map, false for the minimap.
Remarks
Only unlocked waypoints are appended, and fog plays no part: a waypoint the character has not discovered is absent from the map even when the ground it stands on has been explored. Walking past one is not finding it; using it is. That is what keeps a waypoint a thing to look for rather than a dot that appears on approach.
LabelTierForZoom(float, float)
The deepest detail tier whose names the world map draws at a zoom.
public static int LabelTierForZoom(float zoom, float mapHalfExtent)
Parameters
zoomfloatThe view's half-extent, in world metres.
mapHalfExtentfloatHalf the longer side of the scene's map, in world metres.
Returns
- int
0 to 3: 1 when the whole scene is in view, 3 once zoomed in to a quarter of it or closer.
Remarks
A generated scene holds dozens to a hundred and more points of interest, and every name at once is a wall of text. The icons stay, so nothing found is lost; names arrive as the view closes in: settlements and great sites (tiers 0 and 1) at any zoom, ordinary sites (tier 2) from half the scene, small features (tier 3) from a quarter.
NoteColor(int)
The colour for a note's palette index, wrapping rather than failing.
public static Color NoteColor(int index)
Parameters
indexintThe palette index, from a note that may have been edited by hand.
Returns
- Color
A colour from NoteColors.
ResolveLocationName(WorldMapDefinition, FogOfWarMap, string, Vector3)
The name to show for where a position is.
public static string ResolveLocationName(WorldMapDefinition definition, FogOfWarMap fog, string fallback, Vector3 position)
Parameters
definitionWorldMapDefinitionThe scene's map definition. May be null.
fogFogOfWarMapThe explored map, for the discovery rule. May be null.
fallbackstringThe scene's own name, used when no region matches.
positionVector3The position to name.
Returns
- string
The most specific region name that applies, or the fallback.
Remarks
A region the player has not explored yet reads as the scene's name rather than as its own. That is the point of marking a region as requiring discovery: the player can see they are somewhere in the province without being told they have reached the Sunken Chapel before they have found it.