aboutsummaryrefslogtreecommitdiff
path: root/stockton-types/src/session.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commitccf0074b08ce835cf22e7d46153d1cb3f3d06d32 (patch)
treecce0a39b4d1e3f272f071d5b9f2de9a403d396b4 /stockton-types/src/session.rs
parent6fd563b20772ad0ad279f6461179978766a77948 (diff)
fix(render): get aspect ratio from renderer
Diffstat (limited to 'stockton-types/src/session.rs')
-rw-r--r--stockton-types/src/session.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/stockton-types/src/session.rs b/stockton-types/src/session.rs
index f3d4e50..5b91739 100644
--- a/stockton-types/src/session.rs
+++ b/stockton-types/src/session.rs
@@ -11,17 +11,11 @@ pub struct Session {
}
impl Session {
- /// Create a new world from a level.
/// The level can be any format, as long as it has the required features of a bsp.
- pub fn new<R: FnOnce(&mut Resources), S: FnOnce(&mut Builder)>(
- add_resources: R,
- add_systems: S,
- ) -> Session {
+ pub fn new<S: FnOnce(&mut Builder)>(add_systems: S) -> Session {
let world = World::default();
- let mut resources = Resources::default();
- add_resources(&mut resources);
-
+ let resources = Resources::default();
let mut schedule = Schedule::builder();
add_systems(&mut schedule);
let schedule = schedule.build();