Refactor minimap
This commit is contained in:
@@ -12,8 +12,6 @@ public interface IPlayer : IKillable, IProvide<ISaveChunk<PlayerData>>
|
||||
|
||||
public void ToggleInventory();
|
||||
|
||||
public void ToggleMinimap();
|
||||
|
||||
public void PlayerPause();
|
||||
|
||||
public void TakeDamage(double damage, ElementType elementType = ElementType.None, bool isCriticalHit = false);
|
||||
|
||||
@@ -271,11 +271,6 @@ public partial class Player : CharacterBody3D, IPlayer
|
||||
Game.ToggleInventory();
|
||||
}
|
||||
|
||||
public void ToggleMinimap()
|
||||
{
|
||||
Game.ToggleMinimap();
|
||||
}
|
||||
|
||||
public void PlayerPause()
|
||||
{
|
||||
Game.TogglePause();
|
||||
@@ -404,9 +399,6 @@ public partial class Player : CharacterBody3D, IPlayer
|
||||
if (@event.IsActionPressed(GameInputs.Inventory))
|
||||
ToggleInventory();
|
||||
|
||||
if (@event.IsActionPressed(GameInputs.MiniMap))
|
||||
ToggleMinimap();
|
||||
|
||||
if (@event.IsActionPressed(GameInputs.Pause))
|
||||
PlayerPause();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user