tiger-lib 1.17.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
18
use std::sync::LazyLock;

use crate::helpers::TigerHashSet;
use crate::lowercase::Lowercase;

/// A hashed version of [`SOUNDS`], for quick case-insensitive lookup.
pub static SOUNDS_SET: LazyLock<TigerHashSet<Lowercase<'static>>> = LazyLock::new(|| {
    let mut set = TigerHashSet::default();
    for sound in SOUNDS.iter().copied() {
        set.insert(Lowercase::new(sound));
    }
    set
});

// Taken from the object browser
const SOUNDS: &[&str] = &[
    // TODO: EU5 fill in table.
];