Class MapNote
A marker the player placed on the world map themselves: a title, an optional line of text, a colour, and a place.
public sealed class MapNote
- Inheritance
-
MapNote
- Inherited Members
Remarks
Purely local. Notes are stored beside the explored map in the character's own folder and are never sent anywhere — see MapNoteStore for why that is the whole design rather than a first step.
Fields
ColorIndex
Which of the note palette's colours the pin is drawn in.
public int ColorIndex
Field Value
ID
Identifier, unique within the scene, used to edit and delete the note.
public long ID
Field Value
MaximumTextLength
Longest body accepted, in characters.
public const int MaximumTextLength = 256
Field Value
MaximumTitleLength
Longest title accepted, in characters.
public const int MaximumTitleLength = 48
Field Value
Position
Where the note sits, in world space. Y is the terrain height at placement.
public Vector3 Position
Field Value
- Vector3
ShowOnMinimap
Whether the note is also drawn on the minimap.
public bool ShowOnMinimap
Field Value
Text
The note's body, shown in the tooltip.
public string Text
Field Value
Title
The note's title, drawn beside its pin.
public string Title
Field Value
Methods
SetContent(string, string)
Trims a title and body to the lengths the store will accept.
public void SetContent(string title, string text)
Parameters
Remarks
Applied when the note is created and again when it is loaded. A file edited by hand can carry a title of any length, and a note whose title is a megabyte of text would be laid out and drawn every frame the map is open.