Context steering for NPCs (#12915)
This commit is contained in:
24
Content.Server/NPC/Events/NPCSteeringEvent.cs
Normal file
24
Content.Server/NPC/Events/NPCSteeringEvent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Server.NPC.Components;
|
||||
|
||||
namespace Content.Server.NPC.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised directed on an NPC when steering.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly record struct NPCSteeringEvent(
|
||||
NPCSteeringComponent Steering,
|
||||
float[] Interest,
|
||||
float[] Danger,
|
||||
float AgentRadius,
|
||||
Angle OffsetRotation,
|
||||
Vector2 WorldPosition)
|
||||
{
|
||||
public readonly NPCSteeringComponent Steering = Steering;
|
||||
public readonly float[] Interest = Interest;
|
||||
public readonly float[] Danger = Danger;
|
||||
|
||||
public readonly float AgentRadius = AgentRadius;
|
||||
public readonly Angle OffsetRotation = OffsetRotation;
|
||||
public readonly Vector2 WorldPosition = WorldPosition;
|
||||
}
|
||||
Reference in New Issue
Block a user