update servicepoint2 to 0.4.0

This commit is contained in:
Vinzenz Schroeter 2024-05-16 23:40:00 +02:00
parent 167aafc9e8
commit 10cff57ad5
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,7 @@ using System.Net.Sockets;
using ServicePoint2;
using TanksServer.GameLogic;
using TanksServer.Graphics;
using CompressionCode = ServicePoint2.BindGen.CompressionCode;
namespace TanksServer.Interactivity;
@ -66,7 +67,8 @@ internal sealed class SendToServicePointDisplay : IFrameConsumer
try
{
_displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone()).IntoPacket());
_displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone(), CompressionCode.Lzma)
.IntoPacket());
_displayConnection.Send(Command.Cp437Data(MapService.TilesPerRow, 0, _scoresBuffer.Clone()).IntoPacket());
}
catch (SocketException ex)

@ -1 +1 @@
Subproject commit 1dad113ca1fab998bec9e2084e1751d640426619
Subproject commit eab2d58945ebf68a4a6e8cf69cf113875fe6168d