From 893748060685446c52df6d6db883b2b54047f2d7 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 25 Nov 2023 17:57:15 +0100 Subject: [PATCH] chore: rename property --- Server/PacketHandlers/CharacterDeletionHandler.cs | 2 +- Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/PacketHandlers/CharacterDeletionHandler.cs b/Server/PacketHandlers/CharacterDeletionHandler.cs index a9de7c1..871f133 100644 --- a/Server/PacketHandlers/CharacterDeletionHandler.cs +++ b/Server/PacketHandlers/CharacterDeletionHandler.cs @@ -28,7 +28,7 @@ public class CharacterDeletionHandler : IPacketHandler var character = await _wonderkingContext.Characters.FirstOrDefaultAsync(x => x.Name == packet.Name && x.Account.Id == authSession.AccountId) ; - var response = new CharacterDeleteResponsePacket { IsDeleted = 0 }; + var response = new CharacterDeleteResponsePacket { HasToBeZero = 0 }; if (character == null) { await authSession.SendAsync(response); diff --git a/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs b/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs index e6226d3..cb74f71 100644 --- a/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs +++ b/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs @@ -7,7 +7,7 @@ namespace Wonderking.Packets.Outgoing; [PacketId(OperationCode.CharacterDeletionResponse)] public class CharacterDeleteResponsePacket : IPacket { - public required byte IsDeleted { get; set; } + public required byte HasToBeZero { get; set; } public void Deserialize(byte[] data) { @@ -17,7 +17,7 @@ public class CharacterDeleteResponsePacket : IPacket public byte[] Serialize() { Span data = stackalloc byte[1]; - data[0] = IsDeleted; + data[0] = HasToBeZero; return data.ToArray(); } }