Creates more tests for outgoing packets (#165)

This commit is contained in:
Kamron Batman 2020-06-26 12:04:29 -07:00 • committed by GitHub
parent d76d60d900
commit 24b1a579f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 2321 additions and 1488 deletions

View file

@ -2,7 +2,7 @@
* ModernUO *
* Copyright (C) 2019-2020 - ModernUO Development Team *
* Email: hi@modernuo.com *
* File: MapPackets.cs - Created: 2020/05/03 - Updated: 2020/05/08 *
* File: MapPackets.cs - Created: 2020/05/03 - Updated: 2020/06/24 *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@ -27,7 +27,7 @@ namespace Server.Network
{
EnsureCapacity(9 + 4 * 8);
Stream.Write((short)0x0018);
Stream.Write((short)0x18);
Stream.Write(4);
@ -51,4 +51,15 @@ namespace Server.Network
{
}
}
public sealed class MapChange : Packet
{
public MapChange(Map map) : base(0xBF)
{
EnsureCapacity(6);
Stream.Write((short)0x08);
Stream.Write((byte)map.MapID);
}
}
}