9 lines
249 B
C#
9 lines
249 B
C#
using TanksServer.Services;
|
|
|
|
namespace TanksServer.Models;
|
|
|
|
internal readonly record struct FloatPosition(double X, double Y)
|
|
{
|
|
public PixelPosition ToPixelPosition() => new((int)X % MapService.PixelsPerRow, (int)Y % MapService.PixelsPerRow);
|
|
}
|