Private
Public Access
1
0

Update version to 0.2.1, add player color retrieval, and enhance train trip statistics

Performance improvments for power stats
This commit is contained in:
Jan Grießhaber
2026-01-04 01:37:25 +01:00
parent 9b608fc412
commit f40e219a2e
8 changed files with 108 additions and 15 deletions

View File

@@ -44,6 +44,7 @@ script.on_init(function ()
storage.constructedEntites = {}
storage.deconstructedEntities = {}
storage.trainStats = {}
storage.networkCache = {}
---@type LuaTrain[]
storage.trains = {}
@@ -102,6 +103,7 @@ script.on_configuration_changed(function()
storage.playerDeathCause = storage.playerDeathCause or {}
storage.constructedEntites = storage.constructedEntites or {}
storage.deconstructedEntities = storage.deconstructedEntities or{}
storage.networkCache =storage.networkCache or {}
storage.trains = storage.trains or {}
---@type table<uint, trainStat>
storage.trainStats = storage.trainStats or {}