blastmud/blastmud_game/src/static_content/room/cok_murl.rs

11 lines
268 B
Rust

use super::{Room, SimpleRoom};
use serde_yaml::from_str as from_yaml_str;
pub fn room_list() -> Vec<Room> {
from_yaml_str::<Vec<SimpleRoom<()>>>(include_str!("cok_murl.yaml"))
.unwrap()
.into_iter()
.map(|r| r.into())
.collect()
}