chore: rename property
This commit is contained in:
parent
41b9da9735
commit
8937480606
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue