2D-Platformer/Assets/Scripts/Slot.cs
2022-02-12 12:53:50 +02:00

16 lines
No EOL
261 B
C#

using Unity.Entities;
namespace DefaultNamespace
{
[InternalBufferCapacity(8)]
public struct Slot : IBufferElementData
{
public ItemData Item;
public SlotType Type;
public bool HasItem()
{
return Item.Item.IsValid && Item.Amount > 0;
}
}
}