Fix minimap
This commit is contained in:
@@ -227,6 +227,14 @@ public partial class Game : Node3D, IGame
|
||||
|
||||
public void FloorExitReached() => GameState.Input(new GameState.Input.FloorExitEntered());
|
||||
|
||||
public void ShowMinimap(bool isVisible)
|
||||
{
|
||||
if (_map.CurrentFloor is SpecialFloor)
|
||||
InGameUI.ShowMinimap(false);
|
||||
else
|
||||
InGameUI.ShowMinimap(true);
|
||||
}
|
||||
|
||||
public async Task UseItem(IBaseInventoryItem item)
|
||||
{
|
||||
if (item.ItemTag == ItemTag.MysteryItem)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Collections;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.SaveFileBuilder;
|
||||
using System;
|
||||
@@ -31,6 +30,8 @@ public interface IGame : IProvide<IGame>, IProvide<IGameRepo>, IProvide<IPlayer>
|
||||
|
||||
public void FloorExitReached();
|
||||
|
||||
public void ShowMinimap(bool visible);
|
||||
|
||||
public void GameOver();
|
||||
|
||||
public Task Save();
|
||||
|
||||
Reference in New Issue
Block a user