20 lines
449 B
C#
20 lines
449 B
C#
using Encompass;
|
|
using PongFE.Enums;
|
|
|
|
namespace PongFE.Messages
|
|
{
|
|
public struct CollisionMessage : IMessage
|
|
{
|
|
public Entity EntityA { get; }
|
|
public Entity EntityB { get; }
|
|
public HitOrientation HitOrientation;
|
|
|
|
public CollisionMessage(Entity a, Entity b, HitOrientation hitOrientation)
|
|
{
|
|
EntityA = a;
|
|
EntityB = b;
|
|
HitOrientation = hitOrientation;
|
|
}
|
|
}
|
|
}
|