forgot to define BounceMessage
continuous-integration/drone/push Build is passing Details

main
Evan Hemsley 2020-07-21 15:30:21 -07:00
parent 4a947247ec
commit 9abf05753a
1 changed files with 22 additions and 0 deletions

View File

@ -30,6 +30,28 @@ namespace PongFE.Components
}
```
We'll also need **PongFE/Messages/BounceMessage.cs**:
```cs
using Encompass;
using PongFE.Components;
namespace PongFE.Messages
{
public struct BounceMessage : IMessage, IHasEntity
{
public Entity Entity { get; }
public HitOrientation HitOrientation { get; }
public BounceMessage(Entity entity, HitOrientation hitOrientation)
{
Entity = entity;
HitOrientation = hitOrientation;
}
}
}
```
In **PongFE/Engines/CollisionEngine.cs**:
```cs