Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Commit c8ac711

Browse files
committed
minor structure
1 parent 1c59140 commit c8ac711

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/game.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
use bevy_ecs::world::World;
2+
13
pub struct Game {
2-
world: bevy_ecs::world::World,
4+
pub(crate) world: World,
35
}
46

57
impl Game {
6-
pub fn new() {
7-
8+
pub fn new() -> Game {
9+
Game {
10+
world: World::new()
11+
}
12+
}
13+
pub fn run(self) {
14+
815
}
916
}

0 commit comments

Comments
 (0)