You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/Common/Inventory/InventoryTestScript.cs

19 lines
562 B

using Babushka.scripts.CSharp.GameEntity.Entities;
using Babushka.scripts.CSharp.GameEntity.Management;
using Godot;
1 year ago
namespace Babushka.scripts.CSharp.Common.Inventory;
public partial class InventoryTestScript : Node
{
11 months ago
[Export(PropertyHint.ArrayType)]
private ItemResource[] _testItemsToCreate;
1 year ago
public override void _Ready()
{
11 months ago
foreach (var itemResource in _testItemsToCreate)
{
InventoryManager.Instance.CreateItem(itemResource, EntityManager.Instance.GetUniqueEntity<VesnaEntity>().inventory);
11 months ago
}
1 year ago
}
}