2024-04-12 18:32:10 +02:00
|
|
|
using TanksServer.GameLogic;
|
|
|
|
|
2024-04-07 13:02:49 +02:00
|
|
|
namespace TanksServer.Models;
|
|
|
|
|
2024-04-12 18:32:10 +02:00
|
|
|
internal readonly struct PixelPosition(ushort x, ushort y)
|
|
|
|
{
|
|
|
|
public ushort X { get; } = (ushort)((x + MapService.PixelsPerRow) % MapService.PixelsPerRow);
|
|
|
|
public ushort Y { get; } = (ushort)((y + MapService.PixelsPerColumn) % MapService.PixelsPerColumn);
|
|
|
|
}
|