feat: surface player routes for village needs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user