Remove in-progress work that isn't working well
This commit is contained in:
@@ -22,6 +22,12 @@ public interface IGameRepo : IDisposable
|
||||
IAutoProp<Vector3> PlayerGlobalPosition { get; }
|
||||
|
||||
void SetPlayerGlobalPosition(Vector3 playerGlobalPosition);
|
||||
|
||||
void SetNavigationRegion(NavigationRegion3D region);
|
||||
|
||||
IAutoProp<NavigationRegion3D> NavigationRegion3D { get; }
|
||||
|
||||
public Weapon EquippedWeapon { get; }
|
||||
}
|
||||
|
||||
public class GameRepo : IGameRepo
|
||||
@@ -41,6 +47,12 @@ public class GameRepo : IGameRepo
|
||||
public IAutoProp<bool> IsPaused => _isPaused;
|
||||
private readonly AutoProp<bool> _isPaused;
|
||||
|
||||
private Weapon _equippedWeapon;
|
||||
public Weapon EquippedWeapon => _equippedWeapon;
|
||||
|
||||
private AutoProp<NavigationRegion3D> _navigationRegion3D;
|
||||
public IAutoProp<NavigationRegion3D> NavigationRegion3D => _navigationRegion3D;
|
||||
|
||||
private bool _disposedValue;
|
||||
|
||||
public GameRepo()
|
||||
@@ -49,6 +61,8 @@ public class GameRepo : IGameRepo
|
||||
_isInventoryScreenOpened = new AutoProp<bool>(false);
|
||||
_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()
|
||||
@@ -65,6 +79,8 @@ 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