summaryrefslogtreecommitdiff
path: root/StatsComponent.cs
diff options
context:
space:
mode:
authoralex <[email protected]>2026-11-23 12:00:20 +0100
committeralex <[email protected]>2026-11-23 12:00:20 +0100
commit7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e (patch)
treee1fa2d87a79bc8bae87da9e62b19521fe27643e5 /StatsComponent.cs
parent45326f4f10ba2af92ff5d35f0f63e1dc35a4f8eb (diff)
downloadgodot-testing-items.tar.xz
godot-testing-items.zip
Diffstat (limited to 'StatsComponent.cs')
-rw-r--r--StatsComponent.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/StatsComponent.cs b/StatsComponent.cs
index 67b21b8..2ec0d42 100644
--- a/StatsComponent.cs
+++ b/StatsComponent.cs
@@ -3,10 +3,10 @@ using Godot;
public partial class StatsComponent : Node
{
// No longer exported here!
- public EntityStats RuntimeStats { get; private set; }
+ public EntityStats RuntimeStats { get; private set; } = null!;
// We call this manually from the Player script
- public void Initialize(EntityStats baseStats)
+ public void Initialize(EntityStats? baseStats)
{
if (baseStats != null)
{
@@ -17,4 +17,4 @@ public partial class StatsComponent : Node
GD.PrintErr("CRITICAL: StatsComponent received null BaseStats!");
}
}
-} \ No newline at end of file
+}