Barebones inventory menu addition
This commit is contained in:
@@ -23,10 +23,6 @@ public interface IGameRepo : IDisposable
|
||||
|
||||
void SetPlayerGlobalPosition(Vector3 playerGlobalPosition);
|
||||
|
||||
void SetNavigationRegion(NavigationRegion3D region);
|
||||
|
||||
IAutoProp<NavigationRegion3D> NavigationRegion3D { get; }
|
||||
|
||||
public Weapon EquippedWeapon { get; }
|
||||
}
|
||||
|
||||
@@ -50,9 +46,6 @@ public class GameRepo : IGameRepo
|
||||
private Weapon _equippedWeapon;
|
||||
public Weapon EquippedWeapon => _equippedWeapon;
|
||||
|
||||
private AutoProp<NavigationRegion3D> _navigationRegion3D;
|
||||
public IAutoProp<NavigationRegion3D> NavigationRegion3D => _navigationRegion3D;
|
||||
|
||||
private bool _disposedValue;
|
||||
|
||||
public GameRepo()
|
||||
@@ -62,7 +55,6 @@ public class GameRepo : IGameRepo
|
||||
_isPaused = new AutoProp<bool>(false);
|
||||
_playerGlobalPosition = new AutoProp<Vector3>(Vector3.Zero);
|
||||
_equippedWeapon = new Weapon() { InventoryInfo = WeaponInfo.Default };
|
||||
_navigationRegion3D = new AutoProp<NavigationRegion3D>(new NavigationRegion3D());
|
||||
}
|
||||
|
||||
public void Pause()
|
||||
@@ -79,8 +71,6 @@ public class GameRepo : IGameRepo
|
||||
|
||||
public void SetPlayerGlobalPosition(Vector3 playerGlobalPosition) => _playerGlobalPosition.OnNext(playerGlobalPosition);
|
||||
|
||||
public void SetNavigationRegion(NavigationRegion3D region) => _navigationRegion3D.OnNext(region);
|
||||
|
||||
public void OnGameEnded()
|
||||
{
|
||||
Pause();
|
||||
|
||||
Reference in New Issue
Block a user