Struct MapMarker
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.dll
A location's map marker.
public readonly struct MapMarker : IEquatable<MapMarker>
- Implements
- Inherited Members
Remarks
LocationId is null for a marker whose reference states no location. IsVisible is whether the map shows the marker, and CanTravelTo whether the player can fast travel to it.
Constructors
MapMarker(FormId<Location>?, FormId<ObjectReference>, FormId<WorldSpace>, NiPoint3, string, MARKER_TYPE, bool, bool)
A location's map marker.
public MapMarker(FormId<Location>? LocationId, FormId<ObjectReference> ReferenceId, FormId<WorldSpace> WorldspaceId, NiPoint3 Position, string Name, MARKER_TYPE Kind, bool IsVisible, bool CanTravelTo)
Parameters
LocationIdFormId<Location>?ReferenceIdFormId<ObjectReference>WorldspaceIdFormId<WorldSpace>PositionNiPoint3NamestringKindMARKER_TYPEIsVisibleboolCanTravelTobool
Remarks
LocationId is null for a marker whose reference states no location. IsVisible is whether the map shows the marker, and CanTravelTo whether the player can fast travel to it.
Properties
CanTravelTo
public bool CanTravelTo { get; init; }
Property Value
IsVisible
public bool IsVisible { get; init; }
Property Value
Kind
public MARKER_TYPE Kind { get; init; }
Property Value
LocationId
public FormId<Location>? LocationId { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Position
public NiPoint3 Position { get; init; }
Property Value
ReferenceId
public FormId<ObjectReference> ReferenceId { get; init; }
Property Value
WorldspaceId
public FormId<WorldSpace> WorldspaceId { get; init; }
Property Value
Methods
Deconstruct(out FormId<Location>?, out FormId<ObjectReference>, out FormId<WorldSpace>, out NiPoint3, out string, out MARKER_TYPE, out bool, out bool)
public void Deconstruct(out FormId<Location>? LocationId, out FormId<ObjectReference> ReferenceId, out FormId<WorldSpace> WorldspaceId, out NiPoint3 Position, out string Name, out MARKER_TYPE Kind, out bool IsVisible, out bool CanTravelTo)
Parameters
LocationIdFormId<Location>?ReferenceIdFormId<ObjectReference>WorldspaceIdFormId<WorldSpace>PositionNiPoint3NamestringKindMARKER_TYPEIsVisibleboolCanTravelTobool
Equals(MapMarker)
public bool Equals(MapMarker other)
Parameters
otherMapMarker
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MapMarker, MapMarker)
public static bool operator ==(MapMarker left, MapMarker right)
Parameters
Returns
operator !=(MapMarker, MapMarker)
public static bool operator !=(MapMarker left, MapMarker right)