From 73c137d5618f8b2ca3fdf6ca65e1490de0276eac Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Tue, 14 Nov 2023 21:11:25 +0100 Subject: [PATCH] chore: adjust namespaces --- .../Packets/Outgoing/ChannelSelectionResponsePacket.cs | 1 + Wonderking/Packets/Outgoing/CharacterGuildInfo.cs | 5 ----- Wonderking/Packets/Outgoing/{ => Data}/BaseStats.cs | 2 +- Wonderking/Packets/Outgoing/{ => Data}/CharacterData.cs | 2 +- Wonderking/Packets/Outgoing/Data/CharacterGuildInfo.cs | 5 +++++ Wonderking/Packets/Outgoing/{ => Data}/JobData.cs | 2 +- .../Packets/Outgoing/{ => Data}/LoginResponseReason.cs | 2 +- Wonderking/Packets/Outgoing/{ => Data}/ServerChannelData.cs | 2 +- Wonderking/Packets/Outgoing/LoginResponsePacket.cs | 2 ++ 9 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 Wonderking/Packets/Outgoing/CharacterGuildInfo.cs rename Wonderking/Packets/Outgoing/{ => Data}/BaseStats.cs (89%) rename Wonderking/Packets/Outgoing/{ => Data}/CharacterData.cs (92%) create mode 100644 Wonderking/Packets/Outgoing/Data/CharacterGuildInfo.cs rename Wonderking/Packets/Outgoing/{ => Data}/JobData.cs (85%) rename Wonderking/Packets/Outgoing/{ => Data}/LoginResponseReason.cs (91%) rename Wonderking/Packets/Outgoing/{ => Data}/ServerChannelData.cs (84%) diff --git a/Wonderking/Packets/Outgoing/ChannelSelectionResponsePacket.cs b/Wonderking/Packets/Outgoing/ChannelSelectionResponsePacket.cs index f803786..12b93fc 100644 --- a/Wonderking/Packets/Outgoing/ChannelSelectionResponsePacket.cs +++ b/Wonderking/Packets/Outgoing/ChannelSelectionResponsePacket.cs @@ -1,5 +1,6 @@ using System.Buffers.Binary; using System.Text; +using Wonderking.Packets.Outgoing.Data; namespace Wonderking.Packets.Outgoing; diff --git a/Wonderking/Packets/Outgoing/CharacterGuildInfo.cs b/Wonderking/Packets/Outgoing/CharacterGuildInfo.cs deleted file mode 100644 index 7f41eb0..0000000 --- a/Wonderking/Packets/Outgoing/CharacterGuildInfo.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace Wonderking.Packets.Outgoing; - -public struct CharacterGuildInfo -{ -} diff --git a/Wonderking/Packets/Outgoing/BaseStats.cs b/Wonderking/Packets/Outgoing/Data/BaseStats.cs similarity index 89% rename from Wonderking/Packets/Outgoing/BaseStats.cs rename to Wonderking/Packets/Outgoing/Data/BaseStats.cs index b525c87..cb5cbbe 100644 --- a/Wonderking/Packets/Outgoing/BaseStats.cs +++ b/Wonderking/Packets/Outgoing/Data/BaseStats.cs @@ -1,6 +1,6 @@ using JetBrains.Annotations; -namespace Wonderking.Packets.Outgoing; +namespace Wonderking.Packets.Outgoing.Data; [UsedImplicitly] public class BaseStats diff --git a/Wonderking/Packets/Outgoing/CharacterData.cs b/Wonderking/Packets/Outgoing/Data/CharacterData.cs similarity index 92% rename from Wonderking/Packets/Outgoing/CharacterData.cs rename to Wonderking/Packets/Outgoing/Data/CharacterData.cs index b6d95af..fdb4d60 100644 --- a/Wonderking/Packets/Outgoing/CharacterData.cs +++ b/Wonderking/Packets/Outgoing/Data/CharacterData.cs @@ -1,6 +1,6 @@ using Wonderking.Game.Data.Character; -namespace Wonderking.Packets.Outgoing; +namespace Wonderking.Packets.Outgoing.Data; public struct CharacterData { diff --git a/Wonderking/Packets/Outgoing/Data/CharacterGuildInfo.cs b/Wonderking/Packets/Outgoing/Data/CharacterGuildInfo.cs new file mode 100644 index 0000000..a025e1e --- /dev/null +++ b/Wonderking/Packets/Outgoing/Data/CharacterGuildInfo.cs @@ -0,0 +1,5 @@ +namespace Wonderking.Packets.Outgoing.Data; + +public struct CharacterGuildInfo +{ +} diff --git a/Wonderking/Packets/Outgoing/JobData.cs b/Wonderking/Packets/Outgoing/Data/JobData.cs similarity index 85% rename from Wonderking/Packets/Outgoing/JobData.cs rename to Wonderking/Packets/Outgoing/Data/JobData.cs index 6c2c9fe..fb9578a 100644 --- a/Wonderking/Packets/Outgoing/JobData.cs +++ b/Wonderking/Packets/Outgoing/Data/JobData.cs @@ -1,6 +1,6 @@ using JetBrains.Annotations; -namespace Wonderking.Packets.Outgoing; +namespace Wonderking.Packets.Outgoing.Data; [UsedImplicitly] public class JobData diff --git a/Wonderking/Packets/Outgoing/LoginResponseReason.cs b/Wonderking/Packets/Outgoing/Data/LoginResponseReason.cs similarity index 91% rename from Wonderking/Packets/Outgoing/LoginResponseReason.cs rename to Wonderking/Packets/Outgoing/Data/LoginResponseReason.cs index adc830f..11577e1 100644 --- a/Wonderking/Packets/Outgoing/LoginResponseReason.cs +++ b/Wonderking/Packets/Outgoing/Data/LoginResponseReason.cs @@ -1,4 +1,4 @@ -namespace Wonderking.Packets.Outgoing; +namespace Wonderking.Packets.Outgoing.Data; public enum LoginResponseReason : byte { diff --git a/Wonderking/Packets/Outgoing/ServerChannelData.cs b/Wonderking/Packets/Outgoing/Data/ServerChannelData.cs similarity index 84% rename from Wonderking/Packets/Outgoing/ServerChannelData.cs rename to Wonderking/Packets/Outgoing/Data/ServerChannelData.cs index b707c4a..ab5599d 100644 --- a/Wonderking/Packets/Outgoing/ServerChannelData.cs +++ b/Wonderking/Packets/Outgoing/Data/ServerChannelData.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace Wonderking.Packets.Outgoing; +namespace Wonderking.Packets.Outgoing.Data; [StructLayout(LayoutKind.Auto)] public struct ServerChannelData diff --git a/Wonderking/Packets/Outgoing/LoginResponsePacket.cs b/Wonderking/Packets/Outgoing/LoginResponsePacket.cs index 057d032..e3060bb 100644 --- a/Wonderking/Packets/Outgoing/LoginResponsePacket.cs +++ b/Wonderking/Packets/Outgoing/LoginResponsePacket.cs @@ -1,3 +1,5 @@ +using Wonderking.Packets.Outgoing.Data; + namespace Wonderking.Packets.Outgoing; [PacketId(OperationCode.LoginResponse)]