initiative_core/world/place/building/education/
mod.rs1use initiative_macros::WordList;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, WordList)]
5#[serde(into = "&'static str", try_from = "&str")]
6pub enum EducationType {
7 Academy,
8 College,
9 Library,
10 School,
11 University,
12}
13
14impl EducationType {
15 pub const fn get_emoji(&self) -> Option<&'static str> {
16 match self {
17 Self::Academy | Self::College | Self::School | Self::University => Some("🎓"),
18 Self::Library => Some("📚"),
19 }
20 }
21}