make CharacterLevelTable a global const lookup table cause whynot #118
| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user