test of inventory

This commit is contained in:
erik 2025-05-11 15:48:48 +02:00
parent 781a7767ee
commit 29fba4b7cb
3 changed files with 161 additions and 0 deletions

View file

@ -32,6 +32,7 @@ namespace MosswartMassacre
private static Queue<string> rareMessageQueue = new Queue<string>();
private static DateTime _lastSent = DateTime.MinValue;
private static readonly Queue<string> _chatQueue = new Queue<string>();
private InventoryMonitor _inv;
protected override void Startup()
{
@ -63,6 +64,7 @@ namespace MosswartMassacre
vTank.Enable();
//lyssna på commands
WebSocket.OnServerCommand += HandleServerCommand;
_inv = new InventoryMonitor();
}
catch (Exception ex)
{
@ -101,6 +103,7 @@ namespace MosswartMassacre
// sluta lyssna på commands
WebSocket.OnServerCommand -= HandleServerCommand;
WebSocket.Stop();
_inv?.Dispose();
MyHost = null;
}