underworld_core 0.6.3

Small library to either play a game or assist in generating rooms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::components::rooms::{Exit, ExitView};

pub fn view(exit: &Exit, has_visited_connected_room: bool) -> ExitView {
    ExitView {
        has_visited_connected_room,
        id: exit.id.to_string(),
        name: exit.name.clone(),
        exit_type: exit.exit_type,
        material: exit.material,
        descriptors: exit.descriptors.to_vec(),
        size: exit.size,
    }
}