PSO2SERVER/Server/Protocol/Packets/03-ServerPacket/03-24-LoadingLevelPacket.cs
2024-11-27 18:05:53 +08:00

34 lines
763 B
C#

using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
{
public class LoadingLevelPacket : Packet
{
private readonly string _file;
public LoadingLevelPacket(string file)
{
_file = file;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var setAreaPacket = File.ReadAllBytes("Resources\\quests\\" + _file + ".bin");
return setAreaPacket;
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x03, 0x24, PacketFlags.PACKED);
}
#endregion
}
}