Query
A query is a collection of facts about the current game world's state.
Mímir represents these facts in Rust as an IndexMap<FactKey, FactType>
, where the FactKey
generic type indicates the unique name of the fact, and the FactType
generic type indicates the type of the fact's value.
struct Query<FactKey, FactType>
where
FactKey: std::hash::Hash + std::cmp::Eq,
{
facts: IndexMap<FactKey, FactType>,
}