Class TargetOutlineSystem
System used to indicate whether an entity is a valid target based on some criteria.
Inheritance
System.Object
TargetOutlineSystem
Namespace: Content.Client.Outline
Assembly: Content.Client.dll
Syntax
public sealed class TargetOutlineSystem : EntitySystem
Fields
| Improve this Doc View SourceCheckObstruction
Whether to check if the player is unobstructed to the target;
Declaration
public bool CheckObstruction
Field Value
| Type | Description |
|---|---|
| System.Boolean |
LookupSize
The size of the box around the mouse to use when looking for valid targets.
Declaration
public float LookupSize
Field Value
| Type | Description |
|---|---|
| System.Single |
Predicate
Predicate the target must satisfy.
Declaration
public Func<EntityUid, bool>? Predicate
Field Value
| Type | Description |
|---|---|
| System.Nullable<Func<EntityUid, System.Boolean>> |
Range
Minimum range for a target to be valid.
Declaration
public float Range
Field Value
| Type | Description |
|---|---|
| System.Single |
Remarks
If a target is further than this distance, they will still be highlighted in a different color.
ValidationEvent
Event to raise as targets to check whether they are valid.
Declaration
public CancellableEntityEventArgs? ValidationEvent
Field Value
| Type | Description |
|---|---|
| System.Nullable<CancellableEntityEventArgs> |
Remarks
This event will be uncanceled and re-used.
Whitelist
Whitelist that the target must satisfy.
Declaration
public EntityWhitelist Whitelist
Field Value
| Type | Description |
|---|---|
| EntityWhitelist |
Methods
| Improve this Doc View SourceDisable()
Declaration
public void Disable()
Enable(Single, Boolean, Nullable<Func<EntityUid, Boolean>>, EntityWhitelist, Nullable<CancellableEntityEventArgs>)
Declaration
public void Enable(float range, bool checkObstructions, Func<EntityUid, bool>? predicate, EntityWhitelist whitelist, CancellableEntityEventArgs? validationEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | range | |
| System.Boolean | checkObstructions | |
| System.Nullable<Func<EntityUid, System.Boolean>> | predicate | |
| EntityWhitelist | whitelist | |
| System.Nullable<CancellableEntityEventArgs> | validationEvent |
Initialize()
Declaration
public override void Initialize()
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | frameTime |