send scores to big display
This commit is contained in:
parent
a89392beb8
commit
7f00160780
1 changed files with 305 additions and 126 deletions
18
TanksServer/ServicePointDisplay/TextDisplayBuffer.cs
Normal file
18
TanksServer/ServicePointDisplay/TextDisplayBuffer.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using TanksServer.Models;
|
||||
|
||||
namespace TanksServer.ServicePointDisplay;
|
||||
|
||||
internal sealed class TextDisplayBuffer : DisplayBufferView
|
||||
{
|
||||
public TextDisplayBuffer(TilePosition position, ushort charsPerRow, ushort rows)
|
||||
: base(new byte[10 + charsPerRow * rows])
|
||||
{
|
||||
Mode = 3;
|
||||
WidthInTiles = charsPerRow;
|
||||
RowCount = rows;
|
||||
Position = position;
|
||||
Rows = new FixedSizeCharGridView(Data.AsMemory(10), charsPerRow, rows);
|
||||
}
|
||||
|
||||
public FixedSizeCharGridView Rows { get; set; }
|
||||
}
|
||||
Reference in a new issue