another data view

This commit is contained in:
Vinzenz Schroeter 2024-04-10 22:39:33 +02:00
parent 85ae3e302c
commit 91ab911f9c
9 changed files with 44 additions and 23 deletions

View file

@ -5,8 +5,6 @@ namespace TanksServer.Models;
internal static class PositionHelpers
{
public static int ToPixelIndex(this PixelPosition position) => position.Y * MapService.PixelsPerRow + position.X;
public static PixelPosition GetPixelRelative(this TilePosition position, byte subX, byte subY)
{
Debug.Assert(subX < 8);