Re-introduce prototype code

This commit is contained in:
2024-08-23 00:39:15 -07:00
parent 8b3d1bed8a
commit 2fb0c364ca
62 changed files with 1685 additions and 187 deletions
+8
View File
@@ -0,0 +1,8 @@
using Godot;
[GlobalClass]
public partial class ArmorItem : InventoryItem
{
[Export]
public required int Defense { get; set; }
}
+11
View File
@@ -0,0 +1,11 @@
using Godot;
[GlobalClass]
public partial class InventoryItem : Resource
{
[Export]
public string Name = string.Empty;
[Export]
public string Description = string.Empty;
}
+10
View File
@@ -0,0 +1,10 @@
using Godot;
[GlobalClass]
public partial class WeaponItem : InventoryItem
{
[Export]
public required int Damage { get; set; }
public static WeaponItem Default => new WeaponItem() { Damage = 1 };
}