18 lines
374 B
C#
18 lines
374 B
C#
using Godot;
|
|
using System;
|
|
|
|
[GlobalClass]
|
|
public partial class InventoryItemStats : Resource
|
|
{
|
|
[Export]
|
|
public string Name = string.Empty;
|
|
|
|
[Export(PropertyHint.MultilineText)]
|
|
public string Description = string.Empty;
|
|
|
|
[Export]
|
|
public Texture2D Texture { get; set; }
|
|
|
|
[Export(PropertyHint.Range, "0, 1, 0.01")]
|
|
public float SpawnRate { get; set; } = 0.5f;
|
|
} |