Added resource harvesting to DSL.

This commit is contained in:
=
2026-05-05 19:45:50 +02:00
parent a320a86a2f
commit 5882f3865d
8 changed files with 158 additions and 61 deletions
+6 -1
View File
@@ -8,7 +8,7 @@ public class GameResource
bool isEndless;
float extractionSpeed;
double timeSinceLastExtraction;
ItemData item;
public ItemData item;
public GameResource(string name)
{
@@ -34,4 +34,9 @@ public class GameResource
}
return false;
}
public bool CanExtract()
{
return isEndless || currentAmount > 0;
}
}