03-04-LoadingScreenTransitionPacket 数据包调用

This commit is contained in:
Longfeng Qin 2024-09-16 15:40:15 +08:00
parent d94fcdfa76
commit 096e63cdbd
2 changed files with 33 additions and 6 deletions

View File

@ -42,11 +42,11 @@ namespace PSO2SERVER.Packets.Handlers
}
// Initialize you in an empty party
// 将客户端加入空余的队伍中
PartyManager.Instance.CreateNewParty(context);
// Transition to the loading screen
context.SendPacket(new NoPayloadPacket(0x03, 0x04));
// 告诉客户端切换到加载界面
context.SendPacket(new LoadingScreenTransitionPacket());
// TODO Set area, Set character, possibly more. See PolarisLegacy for more.
}

View File

@ -1,11 +1,38 @@
using System;
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Packets.PSOPackets
{
class LoadingScreenTransitionPacket
public class LoadingScreenTransitionPacket : Packet
{
private readonly byte _subtype;
private readonly byte _type;
public LoadingScreenTransitionPacket()
{
_type = 0x03;
_subtype = 0x04;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
return new byte[0];
}
public override PacketHeader GetHeader()
{
return new PacketHeader
{
Type = _type,
Subtype = _subtype
};
}
#endregion
}
}
}