~ruther/NosSmooth

ref: cc1c2439854f6bc008f2d22968f40dfd8be8a7b1 NosSmooth/Packets/NosSmooth.Packets/Server/Act4/FcPacket.cs -rw-r--r-- 1.3 KiB
cc1c2439 — František Boháček feat: add pet positions to walk command 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
//
//  FcPacket.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.Packets.Enums.Entities;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Act4;

/// <summary>
/// Contains the state of the act4.
/// </summary>
/// <remarks>
/// Sent only in act4. Receiving the packet
/// will make status bar appear in the game.
/// The packet contains all information about
/// the current status such as percentage till Mukraju,
/// type of raid etc.
/// </remarks>
/// <param name="Faction">The faction of the player playing.</param>
/// <param name="MinutesUntilReset">The minutes it will take to reset.</param>
/// <param name="AngelState">The status of angel faction, see <see cref="FcSubPacket"/>.</param>
/// <param name="DemonState">The status of demon faction, see <see cref="FcSubPacket"/>.</param>
[PacketHeader("fc", PacketSource.Server)]
[GenerateSerializer(true)]
public record FcPacket(
    [PacketIndex(0)]
    FactionType Faction,
    [PacketIndex(1)]
    long MinutesUntilReset,
    [PacketIndex(2, InnerSeparator = ' ')]
    FcSubPacket AngelState,
    [PacketIndex(3, InnerSeparator = ' ')]
    FcSubPacket DemonState
) : IPacket;
Do not follow this link