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.
19 lines
562 B
19 lines
562 B
using Babushka.scripts.CSharp.GameEntity.Entities;
|
|
using Babushka.scripts.CSharp.GameEntity.Management;
|
|
using Godot;
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
public partial class InventoryTestScript : Node
|
|
{
|
|
[Export(PropertyHint.ArrayType)]
|
|
private ItemResource[] _testItemsToCreate;
|
|
|
|
public override void _Ready()
|
|
{
|
|
foreach (var itemResource in _testItemsToCreate)
|
|
{
|
|
InventoryManager.Instance.CreateItem(itemResource, EntityManager.Instance.GetUniqueEntity<VesnaEntity>().inventory);
|
|
}
|
|
}
|
|
}
|