turn room format and room type into enums; transform line endings

This commit is contained in:
2020-04-24 18:06:17 +01:00
parent f4b82c3a67
commit 1c6e3eb515
5 changed files with 87 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
use crate::*;
use crate::game::{RoomType, RoomFormat};
pub mod image {
use crate::Image;
@@ -404,7 +405,8 @@ pub fn game_default() -> Game {
Game {
name: "Write your game's title here".to_string(),
version: Some(Version { major: 6, minor: 5 }),
room_format: 1,
room_format: Some(RoomFormat::CommaSeparated),
room_type: RoomType::Room,
font: Font::AsciiSmall,
custom_font: None,
text_direction: TextDirection::LeftToRight,