//
// MlInfoBrPacket.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Abstractions.Common;
namespace NosSmooth.Packets.Server.Miniland;
///
/// Miniland info packet. For minilands not owned by the playing character.
///
/// The id of the music. 3800 by default.
/// The name of the owner.
/// The number of daily visits.
/// The number of total visits.
/// Unknown TODO.
/// The welcome message.
[PacketHeader("mlinfobr", PacketSource.Server)]
[GenerateSerializer(true)]
public record MlInfoBrPacket
(
[PacketIndex(0)]
short MinilandMusicId,
[PacketIndex(1)]
NameString OwnerName,
[PacketIndex(2)]
int DailyVisitCount,
[PacketIndex(3)]
int VisitCount,
[PacketIndex(4)]
byte Unknown,
[PacketGreedyIndex(5)]
string MinilandMessage
) : IPacket;