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.
21 lines
460 B
21 lines
460 B
using Godot;
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
// Do not instantiate this resource
|
|
// But it has to be a resource because Godot
|
|
[GlobalClass]
|
|
public partial class ItemInstance: Resource
|
|
{
|
|
[Export] public required ItemResource blueprint;
|
|
[Export] public int amount = 1;
|
|
|
|
public ItemInstance Clone()
|
|
{
|
|
return new ItemInstance
|
|
{
|
|
blueprint = blueprint,
|
|
amount = amount
|
|
};
|
|
}
|
|
}
|