feat: Implement a skill pickup system with a new collectable type, event handling, and dedicated pickup objects.

This commit is contained in:
2026-01-31 17:12:57 +01:00
parent fda544d0f1
commit 425fa5b940
11 changed files with 145 additions and 2 deletions

View File

@@ -6,4 +6,9 @@ public partial class CollectableResource : Resource
{
[Export] public float Amount { get; set; } = 0.0f;
[Export] public CollectableType Type { get; set; }
/// <summary>
/// The skill to unlock when collected. Only used when Type is Skill.
/// </summary>
[Export] public SkillData Skill { get; set; }
}

View File

@@ -5,4 +5,5 @@ public enum CollectableType
Coin,
Kid,
Health,
Skill,
}