PSO2SERVER/Server/Packets/PSOPackets/MovementPacket.cs

32 lines
697 B
C#
Raw Normal View History

2024-09-10 00:31:40 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
2024-09-10 01:13:20 +08:00
using PSO2SERVER.Models;
using PSO2SERVER.Packets.Handlers;
2024-09-10 00:31:40 +08:00
2024-09-10 01:13:20 +08:00
namespace PSO2SERVER.Packets.PSOPackets
2024-09-10 00:31:40 +08:00
{
class MovementPacket : Packet
{
FullMovementData data;
public MovementPacket(FullMovementData data)
{
this.data = data;
}
public override byte[] Build()
{
PacketWriter pw = new PacketWriter();
pw.WriteStruct(data);
return pw.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x4, 0x7, PacketFlags.OBJECT_RELATED);
}
}
}