Add event publishing for inventory and combat interactions
This commit is contained in:
13
GameCore/Events/HitscanImpactEvent.cs
Normal file
13
GameCore/Events/HitscanImpactEvent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
using GameCore.Math;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct HitscanImpactEvent(Entity owner, Vector3 from, Vector3 to, HitResult hit) : IEvent
|
||||
{
|
||||
public readonly Entity Owner = owner;
|
||||
public readonly Vector3 From = from;
|
||||
public readonly Vector3 To = to;
|
||||
public readonly HitResult Hit = hit;
|
||||
}
|
||||
Reference in New Issue
Block a user