Add ambience handler
This commit is contained in:
parent
77d04ca4ec
commit
0af69e2bf2
1 changed files with 28 additions and 0 deletions
28
TShockAPI/Handlers/NetModules/AmbienceHandler.cs
Normal file
28
TShockAPI/Handlers/NetModules/AmbienceHandler.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace TShockAPI.Handlers.NetModules
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Rejects ambience new modules from clients
|
||||||
|
/// </summary>
|
||||||
|
internal class AmbienceHandler : INetModuleHandler
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// No deserialization needed. This should never be received by the server
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="data"></param>
|
||||||
|
public void Deserialize(MemoryStream data)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// This should never be received by the server
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="player"></param>
|
||||||
|
/// <param name="rejectPacket"></param>
|
||||||
|
public void HandlePacket(TSPlayer player, out bool rejectPacket)
|
||||||
|
{
|
||||||
|
rejectPacket = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue