feat: surface player routes for village needs

This commit is contained in:
Rijad Zuzo
2026-07-16 12:36:50 +02:00
parent d6e6a63048
commit 4f88d15e12
15 changed files with 417 additions and 47 deletions
+9
View File
@@ -91,6 +91,15 @@ func get_by_id(event_id: int) -> EconomicEventRecord:
return null
func get_by_ids(event_ids: Array[int]) -> Array[EconomicEventRecord]:
var results: Array[EconomicEventRecord] = []
for event_id in event_ids:
var event := get_by_id(event_id)
if event != null:
results.append(event)
return results
func get_consumption_rates(
current_tick: int,
window_ticks: int = DEFAULT_RATE_WINDOW_TICKS,