//
// FcSubPacket.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.Packets.Enums;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Act4;
///
/// Sub packet of , containing
/// either the state of angels or demons
///
/// The percentage of the faction.
/// The mode
/// The time the raid has been open for so far.
/// The total time the raid will be open for.
/// Whether the current raid is Marcos.
/// Whether the current raid is Hatus.
/// Whether the current raid is Calvina.
/// Whether the current raid is Berios.
/// Unknown value, seems to be always 0.
[GenerateSerializer(true)]
[PacketHeader(null, PacketSource.Server)]
public record FcSubPacket
(
[PacketIndex(0)]
short Percentage,
[PacketIndex(1)]
Act4Mode Mode,
[PacketIndex(2)]
long CurrentTime,
[PacketIndex(3)]
long TotalTime,
[PacketIndex(4)]
bool IsMorcos,
[PacketIndex(5)]
bool IsHatus,
[PacketIndex(6)]
bool IsCalvina,
[PacketIndex(7)]
bool IsBerios,
[PacketIndex(8)]
byte Unknown
) : IPacket;