test of inventory
This commit is contained in:
parent
781a7767ee
commit
29fba4b7cb
3 changed files with 161 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue