aboutsummaryrefslogtreecommitdiff
path: root/stockton-types/src
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:22 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:22 +0100
commit8004132c918a52af3b2e7b32b4fc72c65fde9e3c (patch)
tree9e57c80762cfbb50f98bacfb745bbb988acc22a7 /stockton-types/src
parent8c1406f7a42822d1b020cc672ed99d02eb34d22f (diff)
feat(draw): attach camera position/settings to entity
Diffstat (limited to 'stockton-types/src')
-rw-r--r--stockton-types/src/components/mod.rs4
-rw-r--r--stockton-types/src/session.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/stockton-types/src/components/mod.rs b/stockton-types/src/components/mod.rs
index 0dd9fe9..6f127c1 100644
--- a/stockton-types/src/components/mod.rs
+++ b/stockton-types/src/components/mod.rs
@@ -18,7 +18,7 @@
use crate::Vector3;
#[derive(Clone, Copy, Debug, PartialEq)]
-struct Transform {
+pub struct Transform {
/// Position of the object
pub position: Vector3,
@@ -27,7 +27,7 @@ struct Transform {
}
#[derive(Clone, Copy, Debug, PartialEq)]
-struct CameraSettings {
+pub struct CameraSettings {
/// FOV (radians)
pub fov: f32,
diff --git a/stockton-types/src/session.rs b/stockton-types/src/session.rs
index 8e48b59..a119830 100644
--- a/stockton-types/src/session.rs
+++ b/stockton-types/src/session.rs
@@ -22,7 +22,7 @@ use legion::*;
/// A loaded world.
pub struct Session {
- world: World,
+ pub world: World,
resources: Resources,
schedule: Schedule,
}