//
// CModePacket.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 System.IO.IsolatedStorage;
using NosSmooth.Packets.Enums.Entities;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Character;
///
/// TODO
///
/// The type of the entity the packet is for.
/// The id of the entity.
/// The morph vnum (used for special cards and such).
/// The upgrade of the morph. (wings)
/// The design of the wings.
/// Unknown TODO
/// The size of the entity on the screen.
/// Unknown TODO
[PacketHeader("c_mode", PacketSource.Server)]
[GenerateSerializer(true)]
public record CModePacket
(
[PacketIndex(0)]
EntityType EntityType,
[PacketIndex(1)]
long EntityId,
[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;