~ruther/NosSmooth

ref: 5b49b8a66e8e72e0460177bf484cb5cef73081b3 NosSmooth/Packets/NosSmooth.Packets/Server/Miniland/MlInfoPacket.cs -rw-r--r-- 1.6 KiB
5b49b8a6 — Rutherther fix(packets): make correct inner separator in eq sub packet 3 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
//
//  MlInfoPacket.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;
using NosSmooth.PacketSerializer.Abstractions.Common;

namespace NosSmooth.Packets.Server.Miniland;

/// <summary>
/// Miniland info packet. For miniland owned by the playing character.
/// </summary>
/// <param name="MinilandMusicId">The id of the music. 3800 by default.</param>
/// <param name="MinilandPoints">The points of the miniland.</param>
/// <param name="Unknown">Unknown TODO.</param>
/// <param name="DailyVisitCount">The number of daily visits.</param>
/// <param name="VisitCount">The number of total visits.</param>
/// <param name="Unknown1">Unknown TODO.</param>
/// <param name="MinilandState">The state of the miniland.</param>
/// <param name="MinilandMusicName">The name of the miniland music.</param>
/// <param name="MinilandMessage">The welcome message.</param>
[PacketHeader("mlinfo", PacketSource.Server)]
[GenerateSerializer(true)]
public record MlInfoPacket
(
    [PacketIndex(0)]
    short MinilandMusicId,
    [PacketIndex(1)]
    long MinilandPoints,
    [PacketIndex(2)]
    byte Unknown,
    [PacketIndex(3)]
    int DailyVisitCount,
    [PacketIndex(4)]
    int VisitCount,
    [PacketIndex(5)]
    byte Unknown1,
    [PacketIndex(6)]
    MinilandState MinilandState,
    [PacketIndex(7)]
    NameString MinilandMusicName,
    [PacketGreedyIndex(8)]
    string MinilandMessage
) : IPacket;
Do not follow this link