Skip to content

Commit

Permalink
feat: Create class selection module (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 authored Sep 13, 2024
1 parent f7c9fe2 commit ebfc868
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CTF.Application.Players;
namespace CTF.Application.Players.ClassSelection;

public class ClassSelectionComponent : Component
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CTF.Application.Players.Extensions;
namespace CTF.Application.Players.ClassSelection;

public static class ClassSelectionExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CTF.Application.Players;
namespace CTF.Application.Players.ClassSelection;

public class ClassSelectionSystem(ClassSelectionTextDraw classSelectionTextDraw) : ISystem
{
Expand All @@ -17,7 +17,7 @@ public void OnPlayerConnect(Player player)
[Event]
public void OnPlayerRequestClass(Player player, int classId)
{
if(player.HasForcedClassSelectionAfterDeath())
if (player.HasForcedClassSelectionAfterDeath())
{
player.SetSpawnInfo(player.Team, player.Skin, player.Position, player.Angle);
player.Spawn();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CTF.Application.Players;
namespace CTF.Application.Players.ClassSelection;

public class ClassSelectionTextDraw
{
Expand Down Expand Up @@ -93,4 +93,3 @@ private void Initialize()
_blueCommandListBox.Selectable = false;
}
}

1 change: 1 addition & 0 deletions src/Application/Usings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
global using CTF.Application.Common.Resources;
global using CTF.Application.Common.Extensions;
global using CTF.Application.Players;
global using CTF.Application.Players.ClassSelection;
global using CTF.Application.Players.Accounts;
global using CTF.Application.Players.Ranks;
global using CTF.Application.Players.Combos;
Expand Down

0 comments on commit ebfc868

Please sign in to comment.