Show / Hide Table of Contents

Class RadarArea

A radar area element Radar areas are visual rectangles on the F11 map and ingame radar.

Inheritance
object
Element
RadarArea
Inherited Members
Element.Parent
Element.Children
Element.Associations
Element.AssociatedPlayers
Element.Id
Element.TimeContext
Element.Name
Element.position
Element.Position
Element.Right
Element.Up
Element.Forward
Element.rotation
Element.Rotation
Element.velocity
Element.Velocity
Element.turnVelocity
Element.TurnVelocity
Element.interior
Element.Interior
Element.dimension
Element.Dimension
Element.alpha
Element.Alpha
Element.areCollisionsEnabled
Element.AreCollisionsEnabled
Element.isCallPropagationEnabled
Element.IsCallPropagationEnabled
Element.isFrozen
Element.IsFrozen
Element.UpdateContext
Element.IsSync
Element.Subscribers
Element.ElementDataSubscriptions
Element.BroadcastableElementData
Element.Attachment
Element.AttachedElements
Element.IsDestroyed
Element.IsVisibleToEveryone
Element.AddSubscriber(Player)
Element.RemoveSubscriber(Player)
Element.GetAndIncrementTimeContext()
Element.CanUpdateSync(byte)
Element.Destroy()
Element.RunWithContext(Action, ElementUpdateContext)
Element.RunWithContext(Func<Task>, ElementUpdateContext)
Element.RunAsSync(Action, bool)
Element.RunAsSync(Func<Task>, bool)
Element.RemoveFrom(MtaServer)
Element.AssociateWith(Player)
Element.RemoveFrom(Player)
Element.UpdateAssociatedPlayers()
Element.AddChild(Element)
Element.RemoveChild(Element)
Element.IsChildOf(Element)
Element.SetData(string, LuaValue, DataSyncType)
Element.GetData(string, bool)
Element.SubscribeToData(Player, string)
Element.UnsubscribeFromData(Player, string)
Element.UnsubscribeFromAllData(Player)
Element.IsPlayerSubscribedToData(Player, string)
Element.GetPlayersSubcribedToData(string)
Element.AttachTo(Element, Vector3?, Vector3?)
Element.DetachFrom(Element)
Element.CreateFor(IEnumerable<Player>)
Element.CreateFor(Player)
Element.DestroyFor(IEnumerable<Player>)
Element.DestroyFor(Player)
Element.PositionChanged
Element.RotationChanged
Element.VelocityChanged
Element.TurnVelocityChanged
Element.InteriorChanged
Element.DimensionChanged
Element.AlphaChanged
Element.NameChanged
Element.CallPropagationChanged
Element.CollisionEnabledChanged
Element.FrozenChanged
Element.IdChanged
Element.AssociatedWith
Element.RemovedFrom
Element.DataChanged
Element.Attached
Element.Detached
Element.AttachedOffsetChanged
Element.Destroyed
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Elements
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
Type Name Description
Vector2 position
Vector2 size
Color color

Properties

| Edit this page View Source

Color

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
| 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
Type Description
ElementType
Overrides
Element.ElementType
| Edit this page View Source

IsFlashing

Declaration
public bool IsFlashing { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Position2

Declaration
public Vector2 Position2 { get; set; }
Property Value
Type Description
Vector2
| Edit this page View Source

Size

Declaration
public Vector2 Size { get; set; }
Property Value
Type Description
Vector2

Methods

| Edit this page View Source

AssociateWith(MtaServer)

Declaration
public RadarArea AssociateWith(MtaServer server)
Parameters
Type Name Description
MtaServer server
Returns
Type Description
RadarArea
| Edit this page View Source

IsInside(Vector2)

Declaration
public bool IsInside(Vector2 position)
Parameters
Type Name Description
Vector2 position
Returns
Type Description
bool

Events

| Edit this page View Source

ColorChanged

Declaration
public event ElementChangedEventHandler<RadarArea, Color>? ColorChanged
Event Type
Type Description
ElementChangedEventHandler<RadarArea, Color>
| Edit this page View Source

FlashingStateChanged

Declaration
public event ElementChangedEventHandler<RadarArea, bool>? FlashingStateChanged
Event Type
Type Description
ElementChangedEventHandler<RadarArea, bool>
| Edit this page View Source

SizeChanged

Declaration
public event ElementChangedEventHandler<RadarArea, Vector2>? SizeChanged
Event Type
Type Description
ElementChangedEventHandler<RadarArea, Vector2>

Extension Methods

ElementPropertyRelayingExtensions.AddRelayers(Element)
ElementPropertyRelayingExtensions.RelayChange(Element, Packet)
RadarAreaPropertyRelayingExtensions.AddRadarAreaRelayers(RadarArea)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX