Interface IWorldMapMarkers
- Namespace
- SkyrimForge.World
- Assembly
- SkyrimForge.dll
Adds markers to the world map at runtime, each a place the player can fast travel to.
public interface IWorldMapMarkers
Remarks
Each marker is a reference the game saves. Call members on the game's thread with a game loaded.
Methods
Add(string, FormId<WorldSpace>, NiPoint3, string, MARKER_TYPE)
Adds a marker named name with the icon kind at position in the worldspace with worldspaceId.
key is unique among this plugin's markers and the same in every version of the plugin.
ObjectReference Add(string key, FormId<WorldSpace> worldspaceId, NiPoint3 position, string name, MARKER_TYPE kind)
Parameters
keystringworldspaceIdFormId<WorldSpace>positionNiPoint3namestringkindMARKER_TYPE
Returns
- ObjectReference
The marker's reference. Its parent cell is null while the cell containing the position is not loaded.
Exceptions
- ArgumentNullException
keyornameisnull.- ArgumentException
No worldspace has
worldspaceId, or this plugin added a marker withkeyalready.- InvalidOperationException
The game created no reference or set no marker on it.
GetReferenceId(string)
Returns the reference ID of the marker with key, or null if this plugin added no marker with that key.
FormId<ObjectReference>? GetReferenceId(string key)
Parameters
keystring
Returns
Exceptions
- ArgumentNullException
keyisnull.
Remove(string)
Removes the marker with key from the world map and deletes its reference. A key with no marker has no effect.
void Remove(string key)
Parameters
keystring
Exceptions
- ArgumentNullException
keyisnull.