forgot to define BounceMessage
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4a947247ec
commit
9abf05753a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue