allow public uses of structs; add sample program

This commit is contained in:
2020-04-12 17:13:08 +01:00
parent fd4a682ade
commit bef39f9b8b
15 changed files with 132 additions and 61 deletions

View File

@@ -67,7 +67,7 @@ pub fn avatar() -> Avatar {
}
}
pub(crate) fn sprite() -> Sprite {
pub fn sprite() -> Sprite {
Sprite {
id: "a".to_string(),
name: Some("hatch".to_string()),
@@ -158,7 +158,7 @@ pub fn room() -> Room {
}
}
pub(crate) fn game_default() -> Game {
pub fn game_default() -> Game {
Game {
name: "Write your game's title here".to_string(),
version: 6.5,