修正 class 改为 public 参数

This commit is contained in:
Longfeng Qin 2024-12-03 13:18:58 +08:00
parent 98ee7ff349
commit 15501f27fb
55 changed files with 79 additions and 62 deletions

View File

@ -4,13 +4,13 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
// [PacketHandlerAttr(0x0E, 0x19)]
// class _0E_19_UNK : PacketHandler
// {
// public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
// {
// //var info = string.Format("[<--] 接收到的数据 (hex): {0} 字节", data.Length);
// //Logger.WriteHex(info, data);
// }
// }
// [PacketHandlerAttr(0x0E, 0x19)]
// public class _0E_19_UNK : PacketHandler
// {
// public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
// {
// //var info = string.Format("[<--] 接收到的数据 (hex): {0} 字节", data.Length);
// //Logger.WriteHex(info, data);
// }
// }
}

View File

@ -8,7 +8,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x12)]
class CampshipTeleport : PacketHandler
public class CampshipTeleport : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -8,7 +8,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x16)]
class CampshipTeleportDown : PacketHandler
public class CampshipTeleportDown : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -11,7 +11,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x34)]
class TeleportCasinoToLobby : PacketHandler
public class TeleportCasinoToLobby : PacketHandler
{
/// (0x03, 0x34) Move Casino -> Lobby.
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -10,7 +10,7 @@ using System.Text;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x35)]
class TeleportLobbyToCasino : PacketHandler
public class TeleportLobbyToCasino : PacketHandler
{
/// (0x03, 0x35) Move Lobby -> Casino.
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -11,7 +11,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x38)]
class TeleportBridgeToLobby : PacketHandler
public class TeleportBridgeToLobby : PacketHandler
{
/// (0x03, 0x38) Move Bridge -> Lobby. TODO
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -10,7 +10,7 @@ using System.Text;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x39)]
class TeleportLobbyToBridge : PacketHandler
public class TeleportLobbyToBridge : PacketHandler
{
/// (0x03, 0x39) Move Lobby -> Bridge.
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -11,7 +11,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x3B)]
class TeleportCafeToLobby : PacketHandler
public class TeleportCafeToLobby : PacketHandler
{
/// (0x03, 0x3B) Move Cafe -> Lobby.
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -10,7 +10,7 @@ using System.Text;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x03, 0x3C)]
class TeleportLobbyToCafe : PacketHandler
public class TeleportLobbyToCafe : PacketHandler
{
/// (0x03, 0x3C) Move Lobby -> Cafe.
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -8,7 +8,7 @@ using PSO2SERVER.Zone;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x04, 0x13)]
class _04_13_UNK : PacketHandler
public class _04_13_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -10,7 +10,7 @@ using System.Text;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x04, 0x14)]
class ObjectInteract : PacketHandler
public class ObjectInteract : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x07, 0x3D)]
class _07_3D_UNK : PacketHandler
public class _07_3D_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0x09)]
class MinimapRevealRequest : PacketHandler
public class MinimapRevealRequest : PacketHandler
{
// 定义 MinimapRevealRequestPacket 数据包结构
public struct MinimapRevealRequestPacket

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0x15)]
class QuestCounterAvailableHander : PacketHandler
public class QuestCounterAvailableHander : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0xB, 0x17)]
class QuestListRequestHandler : PacketHandler
public class QuestListRequestHandler : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -14,7 +14,7 @@ using static PSO2SERVER.Protocol.Packets.QuestDifficultyPacket;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0x19)]
class QuestDifficultyRequestHandler : PacketHandler
public class QuestDifficultyRequestHandler : PacketHandler
{
/// List of objects of requested quests.
public List<ObjectHeader> Quests { get; set; } = new List<ObjectHeader>();

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0x20)]
class AcceptQuest : PacketHandler
public class AcceptQuest : PacketHandler
{
public ObjectHeader quest_obj { get; set; }
public ushort diff { get; set; }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0x30)]
class QuestCounterHandler : PacketHandler
public class QuestCounterHandler : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -6,7 +6,7 @@ using PSO2SERVER.Party;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0B, 0xCD)]
class AcceptStoryQuestHandler : PacketHandler
public class AcceptStoryQuestHandler : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0E, 0x0C)]
class QuestDifficultyStartHandler : PacketHandler
public class QuestDifficultyStartHandler : PacketHandler
{
// Go go maximum code duplication (for now)
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0E, 0x19)]
class ChatStatusHandler : PacketHandler
public class ChatStatusHandler : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0E, 0x28)]
class PlayerIsBusyState : PacketHandler
public class PlayerIsBusyState : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x0E, 0x29)]
class PlayerIsNotBusyState : PacketHandler
public class PlayerIsNotBusyState : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x0D)]
public class ClientPingHandler : PacketHandler
public class ClientPing : PacketHandler
{
#region implemented abstract members of PacketHandler

View File

@ -0,0 +1,16 @@
using System;
using PSO2SERVER.Models;
using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x14)]
public class BlockLogin : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{
//var info = string.Format("[<--] 接收到的数据 (hex): {0} 字节", data.Length);
//Logger.WriteHex(info, data);
}
}
}

View File

@ -9,7 +9,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x2D)]
class SystemInformation : PacketHandler
public class SystemInformation : PacketHandler
{
public struct SystemInformationPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x52)]
class _11_52_UNK : PacketHandler
public class _11_52_UNK : PacketHandler
{
private uint PlayerID { get; set; }
private uint unk1 { get; set; }

View File

@ -7,7 +7,7 @@ using static PSO2SERVER.Protocol.Packets.CharacterUndeletionPacket;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x90)]
class CharacterUndeletionRequest : PacketHandler
public class CharacterUndeletionRequest : PacketHandler
{
public struct CharacterUndeletionRequestPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x97)]
class CharacterRenameRequestPacket : PacketHandler
public class CharacterRenameRequestPacket : PacketHandler
{
public uint CharacterID { get; set; }
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)

View File

@ -9,7 +9,7 @@ using System.Linq;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x9B)]
class CharacterNewNameRequest : PacketHandler
public class CharacterNewNameRequest : PacketHandler
{
public struct CharacterNewNameRequestPacket
{

View File

@ -6,7 +6,7 @@ using static PSO2SERVER.Protocol.Handlers.CharacterNewNameRequest;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xB0)]
class Unk11B0 : PacketHandler
public class Unk11B0 : PacketHandler
{
public struct Unk11B0Packet
{

View File

@ -6,7 +6,7 @@ using static PSO2SERVER.Protocol.Packets.CharacterShipTransferCancelPacket;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xBC)]
class CharacterShipTransferCanceldRequest : PacketHandler
public class CharacterShipTransferCanceldRequest : PacketHandler
{
public struct CharacterShipTransferCanceldRequestPacket
{

View File

@ -6,7 +6,7 @@ using static PSO2SERVER.Protocol.Handlers.CharacterNewNameRequest;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xC7)]
class CharacterShipInfoRequest : PacketHandler
public class CharacterShipInfoRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -6,7 +6,7 @@ using static PSO2SERVER.Protocol.Handlers.CharacterNewNameRequest;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xDC)]
class CharacterSurvey : PacketHandler
public class CharacterSurvey : PacketHandler
{
public struct CharacterSurveyPacket
{

View File

@ -7,7 +7,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xEA)]
class NicknameError : PacketHandler
public class NicknameError : PacketHandler
{
public struct NicknameErrorPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0xEB)]
class _11_EB_UNK : PacketHandler
public class _11_EB_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x19, 0x04)]
class _19_04_UNK : PacketHandler
public class _19_04_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x19, 0x06)]
class _19_06_UNK : PacketHandler
public class _19_06_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x19, 0x1C)]
class Unk191CPacketHandler : PacketHandler
public class Unk191CPacketHandler : PacketHandler
{
public struct Unk191CPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x1C, 0x0E)]
class _1C_0E_UNK : PacketHandler
public class _1C_0E_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x1C, 0x1E)]
class CharacterInfoRequest : PacketHandler
public class CharacterInfoRequest : PacketHandler
{
public struct CharacterInfoRequestPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x1C, 0x46)]
class _1C_46_UNK : PacketHandler
public class _1C_46_UNK : PacketHandler
{
//PACKED
public struct _1C_46_PACKET

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x1C, 0x64)]
class _1C_64_UNK : PacketHandler
public class _1C_64_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x1F, 0x09)]
class _1F_09_UNK : PacketHandler
public class _1F_09_UNK : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x21, 0x02)]
class FullPaletteInfoRequest : PacketHandler
public class FullPaletteInfoRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -6,7 +6,7 @@ using static PSO2SERVER.Models.Flags;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x23, 0x02)]
class SetFlagHandler : PacketHandler
public class SetFlagHandler : PacketHandler
{
public struct SetFlagPacket
{

View File

@ -7,7 +7,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x23, 0x0B)]
class SkitItemAddRequest : PacketHandler
public class SkitItemAddRequest : PacketHandler
{
public struct SkitItemAddRequestPacket
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x2B, 0x00)]
class SettingsRequest : PacketHandler
public class SettingsRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -8,7 +8,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x2B, 0x01)]
class SavePlayerSettings : PacketHandler
public class SavePlayerSettings : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -8,7 +8,7 @@ namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x2F, 0x6)]
class SymbolArtListHandler : PacketHandler
public class SymbolArtListHandler : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x3B, 0x00)]
class CharacterForgeInfoRequest : PacketHandler
public class CharacterForgeInfoRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x4A, 0x00)]
class MissionListRequest : PacketHandler
public class MissionListRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x4D, 0x00)]
class MissionPassInfoRequest : PacketHandler
public class MissionPassInfoRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -5,7 +5,7 @@ using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x4D, 0x02)]
class MissionPassRequest : PacketHandler
public class MissionPassRequest : PacketHandler
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{

View File

@ -176,6 +176,7 @@
<Compile Include="Network\PortChecker.cs" />
<Compile Include="Object\ObjectManager.cs" />
<Compile Include="Protocol\Handlers\0B-QuestHandler\0B-20-AcceptQuest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-14-BlockLogin.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-90-CharacterUndeletionRequest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-DC-CharacterSurvey.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-EB-NicknameCheckRequest - 复制.cs" />
@ -218,7 +219,7 @@
<Compile Include="Protocol\Handlers\11-ClientHandler\11-BC-CharacterShipTransferCanceldRequest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-B8-CharacterShipTransferRightsRequest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-06-DeleteCharacter.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-0D-ClientPingHandler.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-0D-ClientPing.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-1D-GuildInfoRequest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-2B-LogOutRequest.cs" />
<Compile Include="Protocol\Handlers\11-ClientHandler\11-3E-CharacterSpawn.cs" />