PSO2SERVER/Server/Protocol/Packets/03-ServerPacket/03-24-LoadingLevelPacket.cs

34 lines
763 B
C#
Raw Normal View History

using PSO2SERVER.Models;
using System;
2024-09-16 15:30:00 +08:00
using System.Collections.Generic;
using System.IO;
2024-09-16 15:30:00 +08:00
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
2024-09-16 15:30:00 +08:00
{
2024-09-16 16:58:51 +08:00
public class LoadingLevelPacket : Packet
2024-09-16 15:30:00 +08:00
{
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
2024-09-16 15:30:00 +08:00
}
}