Skip to content

Commit

Permalink
refactor!: Remove method called HideLoadTimeForAll (#225)
Browse files Browse the repository at this point in the history
This change removes the "HideLoadTimeForAll" method, as the "LoadTime" class already handles hiding the loading text when the time reaches zero, making it redundant.
  • Loading branch information
MrDave1999 authored Nov 13, 2024
1 parent d993e3d commit 94867e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/Application/Maps/Services/MapRotationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ private void OnLoadingMap()
private void OnLoadedMap()
{
_isMapLoading = false;
mapTextDrawRenderer.HideLoadTimeForAll();
TimeLeft.Reset();
CurrentMap currentMap = mapInfoService.Read();
string message = Smart.Format(Messages.MapSuccessfullyLoaded, new { currentMap.Name });
Expand Down
6 changes: 1 addition & 5 deletions src/Application/Maps/Services/MapTextDrawRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void Hide(Player player)
_mapName.Hide(player);
_timer.Hide(player);
_timeLeft.Hide(player);
_loadTime.Hide(player);
}

public void UpdateMapName(CurrentMap currentMap)
Expand All @@ -44,11 +45,6 @@ public void UpdateLoadTime(LoadTime loadTime)
_loadTime.Show();
}

public void HideLoadTimeForAll()
{
_loadTime.Hide();
}

private void Initialize()
{
_mapName = _worldService.CreateTextDraw(new Vector2(140.000000, 399.000000), string.Empty);
Expand Down

0 comments on commit 94867e7

Please sign in to comment.