Class RadarArea
A radar area element
Radar areas are visual rectangles on the F11 map and ingame radar.
Assembly: SlipeServer.Server.dll
Syntax
public class RadarArea : Element
Constructors
|
Edit this page
View Source
RadarArea(Vector2, Vector2, Color)
Declaration
public RadarArea(Vector2 position, Vector2 size, Color color)
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
IsFlashing
Declaration
public bool IsFlashing { get; set; }
Property Value
|
Edit this page
View Source
Position2
Declaration
public Vector2 Position2 { get; set; }
Property Value
|
Edit this page
View Source
Size
Declaration
public Vector2 Size { get; set; }
Property Value
Methods
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public RadarArea AssociateWith(MtaServer server)
Parameters
Returns
|
Edit this page
View Source
IsInside(Vector2)
Declaration
public bool IsInside(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
Events
|
Edit this page
View Source
ColorChanged
Declaration
public event ElementChangedEventHandler<RadarArea, Color>? ColorChanged
Event Type
|
Edit this page
View Source
FlashingStateChanged
Declaration
public event ElementChangedEventHandler<RadarArea, bool>? FlashingStateChanged
Event Type
|
Edit this page
View Source
SizeChanged
Declaration
public event ElementChangedEventHandler<RadarArea, Vector2>? SizeChanged
Event Type
Extension Methods