~ruther/NosSmooth

ref: 550dc6367d265d82d0ee66ad1f4bd33af6522f36 NosSmooth/Packets/NosSmooth.Packets/Server/Quests/QstListSubPacket.cs -rw-r--r-- 2.0 KiB
550dc636 — František Boháček chore: update versions 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
48
49
50
51
52
53
//
//  QstListSubPacket.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.Quests;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Quests;

/// <summary>
/// A sub packet of <see cref="QstListPacket"/>
/// containing information about an active quest.
/// </summary>
/// <param name="QuestNumber">The number of the quest.</param>
/// <param name="InfoId">The info id of the quest to obtain it from .NOS files.</param>
/// <param name="InfoId2">Unknown TODO.</param>
/// <param name="GoalType">The quest goal type.</param>
/// <param name="Objective1SubPacket">The first objective of the quest.</param>
/// <param name="IsQuestFinished"></param>
/// <param name="Objective2SubPacket">The second objective of the quest.</param>
/// <param name="Objective3SubPacket">The third objective of the quest.</param>
/// <param name="Objective4SubPacket">The fourth objective of the quest.</param>
/// <param name="Objective5SubPacket">The fifth objective of the quest.</param>
/// <param name="ShowDialog">Whether to show dialog at start of the quest.</param>
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record QstListSubPacket
(
    [PacketIndex(0)]
    short QuestNumber,
    [PacketIndex(1)]
    short InfoId,
    [PacketIndex(2)]
    short InfoId2,
    [PacketIndex(3)]
    QuestGoalType GoalType,
    [PacketIndex(4, InnerSeparator = '.')]
    QstListObjectiveSubPacket Objective1SubPacket,
    [PacketIndex(5)]
    bool IsQuestFinished,
    [PacketIndex(6, InnerSeparator = '.')]
    QstListObjectiveSubPacket Objective2SubPacket,
    [PacketIndex(7, InnerSeparator = '.')]
    QstListObjectiveSubPacket Objective3SubPacket,
    [PacketIndex(8, InnerSeparator = '.')]
    QstListObjectiveSubPacket Objective4SubPacket,
    [PacketIndex(9, InnerSeparator = '.')]
    QstListObjectiveSubPacket Objective5SubPacket,
    [PacketIndex(10)]
    bool ShowDialog
) : IPacket;
Do not follow this link