sasalka/Code/Inventory/Definitions/BaseItemDefinition.cs
2025-06-26 01:56:08 +03:00

20 lines
554 B
C#

namespace Sasalka;
[GameResource( "Base Item Definition", "inv", "", Category = "Sasalka", Icon = "inventory_2" )]
public class BaseItemDefinition : GameResource
{
public string Name { get; set; }
public string Description { get; set; }
[ResourceType( "prefab" )]
public GameObject Prefab { get; set; } = GameObject.GetPrefab( "prefabs/item_parcel.prefab" );
public Texture ImageTexture { get; set; }
public string ImageUrl { get; set; }
public int MaxCount { get; set; } = 1;
public virtual Inventar.InventorySlot? GetSlot() => null;
}