Implement basic structure for combat system and refactor code

This commit is contained in:
2026-07-03 13:14:36 +02:00
parent 754f81eb4c
commit d98d34ec3f
78 changed files with 1212 additions and 13 deletions
+26
View File
@@ -0,0 +1,26 @@
namespace KernelPanic.Meta
{
/// <summary>
/// Tracks the player's persistent entropy currency balance.
/// </summary>
public sealed class EntropyWallet
{
public int Balance { get; private set; }
public void Add(int amount)
{
Balance += amount;
}
public bool Spend(int amount)
{
if (Balance < amount)
{
return false;
}
Balance -= amount;
return true;
}
}
}