diff options
author | Nao Pross <naopross@thearcway.org> | 2018-12-17 02:07:27 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-12-17 02:07:27 +0100 |
commit | b747ea18619926e1cff0252e0e7b2985b7868faa (patch) | |
tree | b4fec63f4317ab196b1940a42bfda77debb017b9 /src/game.rs | |
parent | Add sfml and tiled dependencies (diff) | |
download | Subconscious-rs-b747ea18619926e1cff0252e0e7b2985b7868faa.tar.gz Subconscious-rs-b747ea18619926e1cff0252e0e7b2985b7868faa.zip |
Add game state object shared across threads
Diffstat (limited to '')
-rw-r--r-- | src/game.rs | 15 |
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 |