Skip to content

Commit

Permalink
Move rank info
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Aug 28, 2024
1 parent 2a6668c commit fe33306
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using Edelstein.Protocol.Gameplay.Contracts.Packets.Shared;
using Edelstein.Protocol.Gameplay.Handling;
using Edelstein.Protocol.Gameplay.Login;
using Edelstein.Protocol.Gameplay.Login.Contracts.Packets;
using Edelstein.Protocol.Gameplay.Login.Contracts.Packets.Recv;
using Edelstein.Protocol.Gameplay.Login.Contracts.Packets.Send;
using Edelstein.Protocol.Gameplay.Login.Contracts.Packets.Shared;
using Edelstein.Protocol.Utilities.Pipelines;

namespace Edelstein.Common.Gameplay.Login.Handling.Pipes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Collections.Generic;
using BinarySerialization;
using Edelstein.Protocol.Gameplay.Contracts.Packets.Shared;
using Edelstein.Protocol.Gameplay.Login.Contracts.Packets.Shared;
using Edelstein.Protocol.Network.Packets;

namespace Edelstein.Protocol.Gameplay.Login.Contracts.Packets.Send;
Expand Down Expand Up @@ -50,5 +49,20 @@ public record SelectWorldResultSuccessInfoCharacter : StructuredBasePacket

[FieldOrder(5)]
[SerializeWhen(nameof(IsRanked), true)]
public StructuredRankInfo RankInfo { get; init; } = new();
public SelectWorldResultSuccessInfoCharacterRank Rank { get; init; } = new();
}

public record SelectWorldResultSuccessInfoCharacterRank : StructuredBasePacket
{
[FieldOrder(0)]
public int WorldRank { get; init; }

[FieldOrder(1)]
public int WorldRankGap { get; init; }

[FieldOrder(2)]
public int JobRank { get; init; }

[FieldOrder(3)]
public int JobRankGap { get; init; }
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using BinarySerialization;
using Edelstein.Protocol.Network.Packets;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using BinarySerialization;
using BinarySerialization;
using Edelstein.Protocol.Network.Packets;

namespace Edelstein.Protocol.Gameplay.Contracts.Packets.Shared;
Expand Down

0 comments on commit fe33306

Please sign in to comment.