Protocol/Packets/LocationInfoPacket.cs

A network packet class representing location info. It defines the command string "LocationInfo" and contains a list of NetworkItem objects serialized as "locations".

Networking
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class LocationInfoPacket : APPacket
{
	public override string Command => "LocationInfo";
	
	[JsonPropertyName( "locations" )]
	public List<NetworkItem> Locations { get; set; } = [];
}