Table of Contents

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

key string
worldspaceId FormId<WorldSpace>
position NiPoint3
name string
kind MARKER_TYPE

Returns

ObjectReference

The marker's reference. Its parent cell is null while the cell containing the position is not loaded.

Exceptions

ArgumentNullException

key or name is null.

ArgumentException

No worldspace has worldspaceId, or this plugin added a marker with key already.

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

key string

Returns

FormId<ObjectReference>?

Exceptions

ArgumentNullException

key is null.

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

key string

Exceptions

ArgumentNullException

key is null.