2024-01-11 23:52:01 -05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using Godot;
|
2024-01-12 00:01:16 -05:00
|
|
|
using GodotGridInventory.Code.UI;
|
2024-01-11 23:52:01 -05:00
|
|
|
|
|
|
|
namespace GodotGridInventory.Code.Grid;
|
2024-01-12 00:01:16 -05:00
|
|
|
|
|
|
|
#nullable enable
|
2024-01-11 23:52:01 -05:00
|
|
|
public class InventoryModel
|
|
|
|
{
|
2024-01-12 00:01:16 -05:00
|
|
|
public int Id { get; init; }
|
|
|
|
public string Name { get; init; } = string.Empty;
|
2024-01-11 23:52:01 -05:00
|
|
|
public int GridWidth { get; set; }
|
|
|
|
public int GridHeight { get; set; }
|
2024-01-12 00:01:16 -05:00
|
|
|
public List<Item> Items { get; set; } = new List<Item>();
|
2024-01-11 23:52:01 -05:00
|
|
|
public List<InventoryCell> Cells { get; set; } = new List<InventoryCell>();
|
2024-01-12 00:01:16 -05:00
|
|
|
public InventoryGrid? Grid { get; set; } = null;
|
|
|
|
public InventoryGridInterface? GridInterface { get; set; } = null;
|
2024-01-11 23:52:01 -05:00
|
|
|
public bool Open { get; set; } = false;
|
|
|
|
}
|