fix(network): Converts House Design Detailed Packet (#538)
- [X] Converts design state detailed packet - [X] Removes `Packet` class - [X] Removes `Send(Packet)` function signatures - [X] Removes `PacketWriter` class - [X] Updates dependencies.
This commit is contained in:
parent
0a435644eb
commit
ec1cc10821
24 changed files with 538 additions and 463 deletions
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Serialization;
|
||||
using Microsoft.Toolkit.HighPerformance.Extensions;
|
||||
using Microsoft.Toolkit.HighPerformance;
|
||||
using Server.Accounting;
|
||||
using Server.Buffers;
|
||||
using Server.ContextMenus;
|
||||
|
|
@ -7047,24 +7047,6 @@ namespace Server
|
|||
eable.Free();
|
||||
}
|
||||
|
||||
public bool Send(Packet p) => Send(p, false);
|
||||
|
||||
public bool Send(Packet p, bool throwOnOffline)
|
||||
{
|
||||
if (m_NetState != null)
|
||||
{
|
||||
m_NetState.Send(p);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (throwOnOffline)
|
||||
{
|
||||
throw new MobileNotConnectedException(this, "Packet could not be sent.");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overridable. Event invoked before the Mobile says something.
|
||||
/// <seealso cref="DoSpeech" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue