Defines a packet type RoomUpdatePacket used by the protocol. It inherits APPacket and serializes three properties: a Command string set to "RoomUpdate", an array of checked location ids, and an array of NetworkPlayer objects.
using System.Text.Json.Serialization;
namespace APLib.Protocol.Packets;
public sealed class RoomUpdatePacket : APPacket
{
[JsonPropertyName( "cmd" )]
public override string Command => "RoomUpdate";
[JsonPropertyName( "checked_locations" )]
public long[] CheckedLocations { get; set; }
[JsonPropertyName( "players" )]
public NetworkPlayer[] Players { get; set; }
}