summaryrefslogtreecommitdiffstats
path: root/src/game.rs
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-17 02:07:27 +0100
committerNao Pross <naopross@thearcway.org>2018-12-17 02:07:27 +0100
commitb747ea18619926e1cff0252e0e7b2985b7868faa (patch)
treeb4fec63f4317ab196b1940a42bfda77debb017b9 /src/game.rs
parentAdd sfml and tiled dependencies (diff)
downloadSubconscious-rs-b747ea18619926e1cff0252e0e7b2985b7868faa.tar.gz
Subconscious-rs-b747ea18619926e1cff0252e0e7b2985b7868faa.zip
Add game state object shared across threads
Diffstat (limited to 'src/game.rs')
-rw-r--r--src/game.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/game.rs b/src/game.rs
index 36ed4b8..ab04b21 100644
--- a/src/game.rs
+++ b/src/game.rs
@@ -1,4 +1,15 @@
+pub struct State {
+ pub running: bool
+}
+
+
+
+pub fn new() -> State {
+ return State {
+ running: true,
+ };
+}
+
+pub fn update(state: &mut State) {
-pub fn start() {
-
} \ No newline at end of file