2025-04-14 16:49:29 +02:00
|
|
|
#nullable enable
|
|
|
|
|
using Godot;
|
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
|
|
|
|
|
|
public partial class ItemOnGroundSpawnWith : Node
|
|
|
|
|
{
|
|
|
|
|
[Export] private ItemResource? _blueprint = null;
|
|
|
|
|
|
|
|
|
|
public override void _EnterTree()
|
|
|
|
|
{
|
|
|
|
|
if(_blueprint == null) return;
|
|
|
|
|
|
2025-05-20 20:42:32 +02:00
|
|
|
var parent = GetParent<ItemOnGround2D>();
|
2025-04-14 16:49:29 +02:00
|
|
|
parent.itemInstance = new ItemInstance { blueprint = _blueprint };
|
|
|
|
|
}
|
|
|
|
|
}
|