~ruther/NosSmooth

ref: 8e5e00ccd56847d9864ba586ef1617df53ac9b8a NosSmooth/Packets/NosSmooth.Packets/Server/Npc/ShopPacket.cs -rw-r--r-- 1.2 KiB
8e5e00cc — František Boháček chore: bump packet 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
//
//  ShopPacket.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;
using NosSmooth.PacketSerializer.Abstractions.Common;

namespace NosSmooth.Packets.Server.Npc;

/// <summary>
/// A shop on the map.
/// </summary>
/// <param name="EntityType">The type of the entity.</param>
/// <param name="EntityVNum">The entity vnum.</param>
/// <param name="ShopId">The id of the shop.</param>
/// <param name="MenuType">The menu type, unknown values.</param>
/// <param name="ShopType">The shop type, unkonwn values.</param>
/// <param name="Name">The name of the shop. (shown above the NPC)</param>
[PacketHeader("shop", PacketSource.Server)]
[GenerateSerializer(true)]
public record ShopPacket
(
    [PacketIndex(0)]
    EntityType EntityType,
    [PacketIndex(1)]
    long EntityVNum,
    [PacketIndex(2)]
    long ShopId,
    [PacketIndex(3)]
    byte MenuType,
    [PacketIndex(4, IsOptional = true)]
    byte? ShopType,
    [PacketGreedyIndex(5, IsOptional = true)]
    NameString? Name
) : IPacket;
Do not follow this link