Protocol/Packets/LocationScoutsPacket.cs

A simple packet class used in the APLib.Protocol namespace. It defines a LocationScoutsPacket that sets the Command to "LocationScouts" and contains a list of location IDs and an integer hint for creation.

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;
}