Code/Protocol/Packets/RoomUpdatePacket.cs

A network packet type representing a room update. It defines the command string "RoomUpdate" and contains arrays for checked location IDs and player info, serialized with JSON property names.

Networking
using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class RoomUpdatePacket : APPacket
{
	public override string Command => "RoomUpdate";
	
	[JsonPropertyName( "checked_locations" )]
	public long[] CheckedLocations { get; set; }
	
	[JsonPropertyName( "players" )]
	public NetworkPlayer[] Players { get; set; }
}