- [X] Adds a stop music packet - [X] Converts chat packets - [X] Breaks out chat code a little bit more - [X] Converts character statue animation packet - [X] Renames some folders to have spaces - [X] Organizes and consolidates incoming/outgoing packets for other content - [X] Fixes virtual checks
27 lines
783 B
C#
27 lines
783 B
C#
using System;
|
|
using Server;
|
|
using Server.Engines.VeteranRewards;
|
|
using Server.Network;
|
|
using Server.Tests;
|
|
using Server.Tests.Network;
|
|
using Xunit;
|
|
|
|
namespace UOContent.Tests
|
|
{
|
|
public class CharacterStatuePacketTests
|
|
{
|
|
[Theory]
|
|
[InlineData(0x1024u, 1, 100, 200)]
|
|
public void TestSendStatueAnimation(uint s, int status, int anim, int frame)
|
|
{
|
|
Serial serial = s;
|
|
var expected = new UpdateStatueAnimation(serial, status, anim, frame).Compile();
|
|
|
|
using var ns = PacketTestUtilities.CreateTestNetState();
|
|
ns.SendStatueAnimation(serial, status, anim, frame);
|
|
|
|
var result = ns.SendPipe.Reader.TryRead();
|
|
AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
|
|
}
|
|
}
|
|
}
|