File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ repository = "https://github.com/deltaphc/raylib-rs"
11
11
[dependencies ]
12
12
raylib = { version = " 1.0" , path = " ../raylib" }
13
13
structopt = " 0.2"
14
- specs-derive = " 0.4"
14
+ specs-derive = " 0.4.1 "
15
15
rand = " 0.7"
16
16
tcod = " 0.15"
17
17
serde = { version = " 1.0" , features = [" derive" ] }
18
18
serde_json = " 1.0"
19
19
arr_macro = " 0.1.3"
20
20
21
21
[dependencies .specs ]
22
- version = " 0.14 "
22
+ version = " 0.16.1 "
23
23
default-features = false
24
24
25
25
[[bin ]]
Original file line number Diff line number Diff line change @@ -154,21 +154,21 @@ fn main() {
154
154
register_components ( & mut world) ;
155
155
let emap = init_world ( & rl, & mut world) ;
156
156
157
- world. add_resource ( rl) ;
157
+ world. insert ( rl) ;
158
158
// Raylib Thread is not safe to send between threads, but we can force it with an ARC
159
159
// It's up to the user to ensure the only systems that use it are
160
160
// thread local otherwise you will segfault
161
- world. add_resource ( emap) ;
162
- world. add_resource ( GameState :: PLAYING ) ;
161
+ world. insert ( emap) ;
162
+ world. insert ( GameState :: PLAYING ) ;
163
163
let mut dispatcher = DispatcherBuilder :: new ( )
164
164
. with ( DeathSys , "death_sys" , & [ ] )
165
165
. with ( PlayerSys , "player_sys" , & [ ] )
166
166
// Drawing must be done on the same thread
167
- . with_thread_local ( DrawSys { thread : thread } )
167
+ . with_thread_local ( DrawSys { thread } )
168
168
. build ( ) ;
169
- dispatcher. setup ( & mut world. res ) ;
169
+ dispatcher. setup ( & mut world) ;
170
170
while !window_should_close ( & world) && !player_lost ( & world) {
171
- dispatcher. dispatch ( & mut world. res ) ;
171
+ dispatcher. dispatch ( & mut world) ;
172
172
}
173
173
}
174
174
You can’t perform that action at this time.
0 commit comments