~ruther/NosSmooth

ref: 0cdfa822191144a8e33223af3184600f75dc6c66 NosSmooth/Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs -rw-r--r-- 1.5 KiB
0cdfa822 — František Boháček fix(packets): make rdlst players have a list index 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
//
//  GidxPacket.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.Entities;
using NosSmooth.Packets.Server.Character;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Abstractions.Common;

namespace NosSmooth.Packets.Server.Families;

/// <summary>
/// Information about player's family.
/// </summary>
/// <param name="EntityType">The type of the entity (always a player).</param>
/// <param name="EntityId">The id of the player.</param>
/// <param name="FamilySubPacket">The sub packet with information about the family, or null, if not in family.</param>
/// <param name="FamilyName">The name of the family.</param>
/// <param name="FamilyCustomRank">The rank of the family.</param>
/// <param name="FamilyIcons">The icons of the family.</param>
[PacketHeader("gidx", PacketSource.Server)]
[GenerateSerializer(true)]
public record GidxPacket
(
    [PacketIndex(0)]
    EntityType EntityType,
    [PacketIndex(1)]
    long EntityId,
    [PacketIndex(2, InnerSeparator = '.')]
    NullableWrapper<FamilySubPacket> FamilySubPacket,
    [PacketIndex(3)]
    NameString? FamilyName,
    [PacketIndex(4)]
    NameString? FamilyCustomRank,
    [PacketListIndex(5, ListSeparator = '|', IsOptional = true)]
    IReadOnlyList<bool>? FamilyIcons
) : IPacket;
Do not follow this link