PSO2SERVER/Server/Protocol/Packets/11-ClientPacket/11-BD-CharacterShipTransferCancelPacket.cs

41 lines
886 B
C#
Raw Normal View History

2024-11-24 23:40:50 +08:00
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
2024-11-24 23:40:50 +08:00
{
2024-11-27 20:53:51 +08:00
public class CharacterShipTransferCancelPacket : Packet
2024-11-24 23:40:50 +08:00
{
2024-11-27 20:53:51 +08:00
public enum MoveStatus : uint
2024-11-24 23:40:50 +08:00
{
2024-11-27 20:53:51 +08:00
Success,
Failed,
}
public MoveStatus status { get; set; }
public CharacterShipTransferCancelPacket(MoveStatus status)
{
this.status = status;
2024-11-24 23:40:50 +08:00
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
2024-11-27 20:53:51 +08:00
pkt.Write((uint)status);
2024-11-24 23:40:50 +08:00
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x11, 0xBD, PacketFlags.None);
}
#endregion
}
}