~ruther/NosSmooth

dd86f6122c5c8f23b348eba55224add362e77b10 — František Boháček 2 years ago 2537dc5
fix(packets): make cmode fields correctly optional
1 files changed, 13 insertions(+), 12 deletions(-)

M Packets/NosSmooth.Packets/Server/Character/CModePacket.cs
M Packets/NosSmooth.Packets/Server/Character/CModePacket.cs => Packets/NosSmooth.Packets/Server/Character/CModePacket.cs +13 -12
@@ 4,6 4,7 @@
//  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 System.IO.IsolatedStorage;
using NosSmooth.Packets.Enums.Entities;
using NosSmooth.PacketSerializer.Abstractions.Attributes;



@@ 28,16 29,16 @@ public record CModePacket
    EntityType EntityType,
    [PacketIndex(1)]
    long EntityId,
    [PacketIndex(2)]
    long MorphVNum,
    [PacketIndex(3)]
    byte MorphUpgrade,
    [PacketIndex(4)]
    short MorphDesign,
    [PacketIndex(5)]
    byte MorphBonus,
    [PacketIndex(6)]
    byte Size,
    [PacketIndex(7)]
    short MorphSkin
    [PacketIndex(2, IsOptional = true)]
    long? MorphVNum,
    [PacketIndex(3, IsOptional = true)]
    byte? MorphUpgrade,
    [PacketIndex(4, IsOptional = true)]
    short? MorphDesign,
    [PacketIndex(5, IsOptional = true)]
    byte? MorphBonus,
    [PacketIndex(6, IsOptional = true)]
    byte? Size,
    [PacketIndex(7, IsOptional = true)]
    short? MorphSkin
) : IPacket;
\ No newline at end of file

Do not follow this link