Data and sources
IData and DataBase
All domain data implements IData (= string Id). DataBase<T> is an in-memory index of
id → definition, and all domains share this single class generically.
Source-agnostic — IDataLoader<T>
No matter where you read data from, it goes through the same boundary, IDataLoader<T>. The package provides two implementations.
JSON
Based on Newtonsoft.Json, it reads a top-level array as is. (No wrapper class needed.)
CSV
Uses the first row as the header and converts each row with ICsvMapper<T>. Quotes, commas, and newlines are supported.
ICsvMapper<T> implementations are usually generated by the Type Designer.
Custom sources
For binary, ScriptableObject, in-house formats, etc., you only need to implement IDataLoader<T>.
JSON in the editor, CSV/Remote in production — you just swap out the source.
Data format (reactions)
Domain data inherits from EntityData. The common fields are id, stats, and reactions.
params is an arbitrary key-value (ParamBag) that effects/conditions read with type conversion,
like ctx.Params.Get<float>("power").