Spawn items
This commit is contained in:
@@ -9,7 +9,7 @@ public interface IGameRepo : IDisposable
|
||||
{
|
||||
event Action? Ended;
|
||||
|
||||
IAutoProp<List<InventoryItem>> InventoryItems { get; }
|
||||
IAutoProp<List<InventoryItemInfo>> InventoryItems { get; }
|
||||
|
||||
IAutoProp<bool> IsInventoryScreenOpened { get; }
|
||||
|
||||
@@ -28,10 +28,10 @@ public class GameRepo : IGameRepo
|
||||
{
|
||||
public event Action? Ended;
|
||||
|
||||
private readonly AutoProp<List<InventoryItem>> _inventoryItems;
|
||||
private readonly AutoProp<List<InventoryItemInfo>> _inventoryItems;
|
||||
private readonly AutoProp<bool> _isInventoryScreenOpened;
|
||||
|
||||
public IAutoProp<List<InventoryItem>> InventoryItems => _inventoryItems;
|
||||
public IAutoProp<List<InventoryItemInfo>> InventoryItems => _inventoryItems;
|
||||
|
||||
public IAutoProp<bool> IsInventoryScreenOpened => _isInventoryScreenOpened;
|
||||
|
||||
@@ -45,7 +45,7 @@ public class GameRepo : IGameRepo
|
||||
|
||||
public GameRepo()
|
||||
{
|
||||
_inventoryItems = new AutoProp<List<InventoryItem>>([]);
|
||||
_inventoryItems = new AutoProp<List<InventoryItemInfo>>([]);
|
||||
_isInventoryScreenOpened = new AutoProp<bool>(false);
|
||||
_isPaused = new AutoProp<bool>(false);
|
||||
_playerGlobalPosition = new AutoProp<Vector3>(Vector3.Zero);
|
||||
|
||||
Reference in New Issue
Block a user