openstellaris-vault/pages/metrics db.md

7 lines
652 B
Markdown
Raw Normal View History

2023-05-20 07:26:34 +00:00
tags:: architecture
- everything that can possibly be a [[metric]] tracked in one place
- every [[metric]] also has “attributes”, the same way a db has columns, so we can do things like query for "all attack % of this particular empire"
- can uniformly apply [[modifiers]] like "all of these metrics queried take a 15% debuff"
- tracking metrics also gives us stats options, for example if ur [[energy credits]] are being combined from multiple sources each of them could be tracked separately
- every entry could also contain a closure along with the current amount, so the new value at any [[tick]] can just be determined by running the closure