~ruther/NosSmooth

59d71ea9274bbbb9d1df8c1ae903144c69e84b1c — František Boháček 3 years ago 3ad0725
feat: add cmap packet
1 files changed, 27 insertions(+), 0 deletions(-)

A Core/NosSmooth.Packets/Packets/Server/Maps/CMapPacket.cs
A Core/NosSmooth.Packets/Packets/Server/Maps/CMapPacket.cs => Core/NosSmooth.Packets/Packets/Server/Maps/CMapPacket.cs +27 -0
@@ 0,0 1,27 @@
//
//  CMapPacket.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.Attributes;

namespace NosSmooth.Packets.Packets.Server.Maps;

/// <summary>
/// Packet sent when map is changed.
/// </summary>
/// <param name="Type">The type of the map.</param>
/// <param name="Id">The id of the map.</param>
/// <param name="IsBaseType">Whether the map is a base map.</param>
[PacketHeader("c_map", PacketSource.Server)]
[GenerateSerializer]
public record CMapPacket
(
    [PacketIndex(0)]
    byte Type,
    [PacketIndex(1)]
    short Id,
    [PacketIndex(2)]
    bool IsBaseType
) : IPacket;
\ No newline at end of file

Do not follow this link