chore: rename property

This commit is contained in:
Timothy Schenk 2023-11-25 17:57:15 +01:00
parent 41b9da9735
commit 8937480606
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ public class CharacterDeletionHandler : IPacketHandler<CharacterDeletePacket>
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);

View file

@ -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<byte> data = stackalloc byte[1];
data[0] = IsDeleted;
data[0] = HasToBeZero;
return data.ToArray();
}
}