about summary refs log tree commit diff stats
path: root/js/story-interpreter/world.dsl
blob: 3e75a7a4ec95d69512bd24374af5fdf76e43fce1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
room "Kitchen" {
    description "A small, cozy kitchen. There's a smell of cookies baking."
    
    item "Cookie Jar" {
        description "A ceramic jar filled with delicious cookies."
        action "take" {
            effect "You take a cookie from the jar."
        }
    }

    animal "Cat" {
        description "A small black cat is sitting on the counter."
        action "talk" {
            effect "The cat meows at you."
        }
    }

    connection "north" to "Living Room"
}

room "Living Room" {
    description "A large living room with a comfortable couch and a TV."
    
    item "Remote Control" {
        description "A remote control for the TV."
        action "use" {
            effect "You turn on the TV. The news is on."
        }
    }

    connection "south" to "Kitchen"
}
hlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
[package]
name = "clinte"
version = "0.1.0"
authors = ["Ben Morrison <ben@gbmor.dev>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = "^0.4"
clap = "^2.33"
log = "^0.4"
rusqlite = "^0.20"
simplelog = "^0.7"
users = "^0.9"