send scores to big display
This commit is contained in:
parent
a89392beb8
commit
7f00160780
22 changed files with 305 additions and 126 deletions
|
@ -4,6 +4,7 @@ using System.Threading.Channels;
|
|||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using TanksServer.Helpers;
|
||||
using TanksServer.ServicePointDisplay;
|
||||
|
||||
namespace TanksServer.Servers;
|
||||
|
||||
|
@ -65,7 +66,7 @@ internal sealed class ClientScreenServer(
|
|||
Done = ReceiveAsync();
|
||||
}
|
||||
|
||||
public async Task SendAsync(DisplayPixelBuffer buf)
|
||||
public async Task SendAsync(PixelDisplayBufferView buf)
|
||||
{
|
||||
if (!await _wantedFrames.WaitAsync(TimeSpan.Zero))
|
||||
{
|
||||
|
|
|
@ -29,6 +29,8 @@ internal sealed class PlayerServer(ILogger<PlayerServer> logger, SpawnQueueProvi
|
|||
foundPlayer = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public IEnumerable<Player> GetAll() => _players.Values;
|
||||
|
||||
private Player AddAndSpawn(string name)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue