2024-09-16 15:40:15 +08:00
|
|
|
|
using PSO2SERVER.Models;
|
|
|
|
|
using System;
|
2024-09-16 15:30:00 +08:00
|
|
|
|
using System.Collections.Generic;
|
2024-09-18 00:55:35 +08:00
|
|
|
|
using System.IO;
|
2024-09-16 15:30:00 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2024-11-27 18:05:53 +08:00
|
|
|
|
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
|
|
|
|
{
|
2024-09-18 00:55:35 +08:00
|
|
|
|
private readonly string _file;
|
2024-09-16 15:40:15 +08:00
|
|
|
|
|
2024-09-18 00:55:35 +08:00
|
|
|
|
public LoadingLevelPacket(string file)
|
2024-09-16 15:40:15 +08:00
|
|
|
|
{
|
2024-09-18 00:55:35 +08:00
|
|
|
|
_file = file;
|
2024-09-16 15:40:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region implemented abstract members of Packet
|
|
|
|
|
|
|
|
|
|
public override byte[] Build()
|
|
|
|
|
{
|
2024-09-18 00:55:35 +08:00
|
|
|
|
var setAreaPacket = File.ReadAllBytes("Resources\\quests\\" + _file + ".bin");
|
|
|
|
|
return setAreaPacket;
|
2024-09-16 15:40:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override PacketHeader GetHeader()
|
|
|
|
|
{
|
2024-09-18 00:55:35 +08:00
|
|
|
|
return new PacketHeader(0x03, 0x24, PacketFlags.PACKED);
|
2024-09-16 15:40:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
2024-09-16 15:30:00 +08:00
|
|
|
|
}
|
2024-09-16 15:40:15 +08:00
|
|
|
|
}
|