~ruther/NosSmooth

ref: 58b1e1aff9662048065b2c194d52eaeaba2d5ba7 NosSmooth/Packets/NosSmooth.Packets/Server/Act4/FcSubPacket.cs -rw-r--r-- 1.5 KiB
58b1e1af — František Boháček fix(packets): implement IPacket in Sayi2Packet 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
//  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;

/// <summary>
/// Sub packet of <see cref="FcPacket"/>, containing
/// either the state of angels or demons
/// </summary>
/// <param name="Percentage">The percentage of the faction.</param>
/// <param name="Mode">The mode </param>
/// <param name="CurrentTime">The time the raid has been open for so far.</param>
/// <param name="TotalTime">The total time the raid will be open for.</param>
/// <param name="IsMorcos">Whether the current raid is Marcos.</param>
/// <param name="IsHatus">Whether the current raid is Hatus.</param>
/// <param name="IsCalvina">Whether the current raid is Calvina.</param>
/// <param name="IsBerios">Whether the current raid is Berios.</param>
/// <param name="Unknown">Unknown value, seems to be always 0.</param>
[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;
Do not follow this link