Context steering for NPCs (#12915)
This commit is contained in:
32
Content.Shared/NPC/Events/NPCSteeringDebugEvent.cs
Normal file
32
Content.Shared/NPC/Events/NPCSteeringDebugEvent.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.NPC.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Client debug data for NPC steering
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class NPCSteeringDebugEvent : EntityEventArgs
|
||||
{
|
||||
public List<NPCSteeringDebugData> Data;
|
||||
|
||||
public NPCSteeringDebugEvent(List<NPCSteeringDebugData> data)
|
||||
{
|
||||
Data = data;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public readonly record struct NPCSteeringDebugData(
|
||||
EntityUid EntityUid,
|
||||
Vector2 Direction,
|
||||
float[] Interest,
|
||||
float[] Danger,
|
||||
List<Vector2> DangerPoints)
|
||||
{
|
||||
public readonly EntityUid EntityUid = EntityUid;
|
||||
public readonly Vector2 Direction = Direction;
|
||||
public readonly float[] Interest = Interest;
|
||||
public readonly float[] Danger = Danger;
|
||||
public readonly List<Vector2> DangerPoints = DangerPoints;
|
||||
}
|
||||
Reference in New Issue
Block a user