make CharacterLevelTable a global const lookup table cause whynot #118

Merged
jake merged 3 commits from global_leveltable into master 2022-08-02 22:38:03 -04:00
Showing only changes of commit 91a92870dc - Show all commits

View File

@ -1,9 +1,9 @@
use std::fs::File;
use serde_json::Value;
use crate::entity::character::CharacterClass;
use std::cell::LazyCell;
use std::sync::LazyLock;
pub const LEVEL_TABLE: LazyCell<CharacterLevelTable> = LazyCell::new(|| CharacterLevelTable::default());
pub static LEVEL_TABLE: LazyLock<CharacterLevelTable> = LazyLock::new(CharacterLevelTable::default);
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
pub struct CharacterStats {