another data view
This commit is contained in:
parent
85ae3e302c
commit
91ab911f9c
9 changed files with 44 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue