Protocol/Packets/StatusUpdatePacket.cs

Defines a packet type StatusUpdatePacket used by the protocol. It inherits APPacket, sets Command to "StatusUpdate", and exposes an int Status property serialized as "status".

Networking
using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class StatusUpdatePacket : APPacket
{
	public override string Command => "StatusUpdate";
	
	[JsonPropertyName( "status" )]
	public int Status { get; set; }
}