Code/Protocol/Packets/LocationScoutsPacket.cs

Defines a network packet type LocationScoutsPacket used by the APLib protocol. It declares the Command string "LocationScouts", a JSON-serializable list of location IDs (long) and an integer CreateAsHint.

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

namespace APLib.Protocol.Packets;

public sealed class LocationScoutsPacket : APPacket
{
	public override string Command => "LocationScouts";
	
	[JsonPropertyName( "locations" )]
	public List<long> Locations { get; set; } = [];
	
	[JsonPropertyName( "create_as_hint" )]
	public int CreateAsHint { get; set; } = 0;
}