csr version imported
This commit is contained in:
1 parent
2a1fb81567
commit
b09dcb5fc1
19 files changed
+122928
-5
No files matched your search
@@ -0,0 +1,23 @@
|
||||
use crate::prelude::*;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
|
||||
lazy_static! {
|
||||
pub static ref ITEMS_REFS: ItemReferenceMap = {
|
||||
let mut map = HashMap::with_capacity(5_000);
|
||||
|
||||
utils::read_items(include_str!("../../data/items.json"), &mut map);
|
||||
utils::read_items(include_str!("../../data/base.json"), &mut map);
|
||||
utils::read_items(include_str!("../../data/foundry.json"), &mut map);
|
||||
utils::read_items(include_str!("../../data/magic.json"), &mut map);
|
||||
utils::read_items(include_str!("../../data/foundry.json"), &mut map);
|
||||
|
||||
info!("Loaded {} items", map.len());
|
||||
|
||||
ItemReferenceMap(HashMap::from_iter(map.into_iter()))
|
||||
};
|
||||
|
||||
pub static ref ITEMS_NAMES: Vec<&'static String> = {
|
||||
ITEMS_REFS.0.keys().collect()
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user