PongFE/PongFE/Messages/GoalBoundarySpawnMessage.cs

23 lines
578 B
C#
Raw Normal View History

2020-07-15 21:00:55 +00:00
using Encompass;
using MoonTools.Structs;
2020-07-16 21:39:36 +00:00
using PongFE.Enums;
2020-07-15 21:00:55 +00:00
namespace PongFE.Messages
{
public struct GoalBoundarySpawnMessage : IMessage
{
2020-07-16 22:07:42 +00:00
public PlayerIndex PlayerIndex { get; }
2020-07-15 21:00:55 +00:00
public Position2D Position { get; }
public int Width { get; }
public int Height { get; }
2020-07-16 22:07:42 +00:00
public GoalBoundarySpawnMessage(PlayerIndex playerIndex, Position2D position, int width, int height)
2020-07-15 21:00:55 +00:00
{
2020-07-16 22:07:42 +00:00
PlayerIndex = playerIndex;
2020-07-15 21:00:55 +00:00
Position = position;
Width = width;
Height = height;
}
}
}