Class Marker
A marker element
A marker represent a visual marking in the game. This can be in one of several shapes based on the marker type.
Assembly: SlipeServer.Server.dll
Syntax
public class Marker : Element
Constructors
|
Edit this page
View Source
Marker(Vector3, MarkerType)
Declaration
public Marker(Vector3 position, MarkerType markerType)
Parameters
Properties
|
Edit this page
View Source
Color
Declaration
public Color Color { get; set; }
Property Value
|
Edit this page
View Source
ElementType
The element type as per MTA's specifications. Multiple C# types can share the same MTA element type.
Declaration
public override ElementType ElementType { get; }
Property Value
Overrides
|
Edit this page
View Source
MarkerIcon
Declaration
public MarkerIcon MarkerIcon { get; set; }
Property Value
|
Edit this page
View Source
MarkerType
Declaration
public MarkerType MarkerType { get; set; }
Property Value
|
Edit this page
View Source
Size
Declaration
public float Size { get; set; }
Property Value
|
Edit this page
View Source
TargetPosition
Declaration
public Vector3? TargetPosition { get; set; }
Property Value
Methods
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public Marker AssociateWith(MtaServer server)
Parameters
Returns
Events
|
Edit this page
View Source
ColorChanged
Declaration
public event ElementChangedEventHandler<Marker, Color>? ColorChanged
Event Type
|
Edit this page
View Source
MarkerIconChanged
Declaration
public event ElementChangedEventHandler<Marker, MarkerIcon>? MarkerIconChanged
Event Type
|
Edit this page
View Source
MarkerTypeChanged
Declaration
public event ElementChangedEventHandler<Marker, MarkerType>? MarkerTypeChanged
Event Type
|
Edit this page
View Source
SizeChanged
Declaration
public event ElementChangedEventHandler<Marker, float>? SizeChanged
Event Type
|
Edit this page
View Source
TargetPositionChanged
Declaration
public event ElementChangedEventHandler<Marker, Vector3?>? TargetPositionChanged
Event Type
Extension Methods