Fix texture stuff
This commit is contained in:
@@ -1,23 +1,18 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.Serialization;
|
||||
using Godot;
|
||||
using Zennysoft.Ma.Godot.Adapter;
|
||||
using Zennysoft.Ma.Adapter;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
[Meta, Id("inventory_item_stats")]
|
||||
public partial class InventoryItemStats : Resource
|
||||
public abstract partial class InventoryItemStats : Resource
|
||||
{
|
||||
[Export]
|
||||
[Save("inventory_item_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public abstract string Name { get; set; }
|
||||
|
||||
[Export(PropertyHint.MultilineText)]
|
||||
[Save("inventory_item_description")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Save("inventory_item_texture")]
|
||||
[Export] public Texture2D Texture { get; set; } = default!;
|
||||
public abstract string Description { get; set; }
|
||||
|
||||
[Export(PropertyHint.Range, "0, 1, 0.01")]
|
||||
public float SpawnRate { get; set; } = 0.5f;
|
||||
@@ -36,4 +31,8 @@ public partial class InventoryItemStats : Resource
|
||||
|
||||
[Export]
|
||||
public ItemTag ItemTag { get; set; } = ItemTag.None;
|
||||
|
||||
[Export]
|
||||
[Save("inventory_item_texture")]
|
||||
public Texture2D Texture { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user