2024-04-07 18:18:26 +02:00
|
|
|
using TanksServer.Services;
|
|
|
|
|
2024-04-07 17:17:11 +02:00
|
|
|
namespace TanksServer.Models;
|
|
|
|
|
2024-04-07 18:18:26 +02:00
|
|
|
internal readonly record struct FloatPosition(double X, double Y)
|
|
|
|
{
|
|
|
|
public PixelPosition ToPixelPosition() => new((int)X % MapService.PixelsPerRow, (int)Y % MapService.PixelsPerRow);
|
|
|
|
}
|