tiger-lib 1.18.0

Library used by the tools ck3-tiger, vic3-tiger, and imperator-tiger. This library holds the bulk of the code for them. It can be built either for ck3-tiger with the feature ck3, or for vic3-tiger with the feature vic3, or for imperator-tiger with the feature imperator, but not both at the same time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::LazyLock;

use crate::defines::DefineType;
use crate::helpers::TigerHashMap;

/// A hashed version of [`DEFINES`], for quick lookup
pub static DEFINES_MAP: LazyLock<TigerHashMap<&'static str, DefineType>> = LazyLock::new(|| {
    let mut hash = TigerHashMap::default();
    for (key, dt) in DEFINES.iter().copied() {
        hash.insert(key, dt);
    }
    hash
});

// LAST UPDATED HOI4 VERSION
// See common/defines.
const DEFINES: &[(&str, DefineType)] = &[];