aboutsummaryrefslogtreecommitdiff
path: root/stockton-types/src/lib.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:18 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:18 +0100
commit6ee3384750bb065e4397b02e2cc7f567f96da73a (patch)
tree2011ee3c2f654c0d00350d6385d1875b421bc3bb /stockton-types/src/lib.rs
parent70fb71ba581e33ef574eadf4dfa4a8eb84740df3 (diff)
feat(world): world creation
Diffstat (limited to 'stockton-types/src/lib.rs')
-rw-r--r--stockton-types/src/lib.rs16
1 files changed, 5 insertions, 11 deletions
diff --git a/stockton-types/src/lib.rs b/stockton-types/src/lib.rs
index 259c40c..0612e86 100644
--- a/stockton-types/src/lib.rs
+++ b/stockton-types/src/lib.rs
@@ -3,10 +3,11 @@
extern crate stockton_bsp;
extern crate nalgebra as na;
-use stockton_bsp::BSPFile;
-
pub mod entity_store;
-use entity_store::EntityStore;
+pub use entity_store::{EntityStore, Entity};
+
+pub mod world;
+pub use world::World;
/// Alias for convenience
pub type Vector2 = na::base::Vector2<f32>;
@@ -17,11 +18,4 @@ pub type Vector3 = na::base::Vector3<f32>;
pub type Vector2i = na::base::Vector2<i32>;
/// Alias for convenience
-pub type Vector3i = na::base::Vector3<i32>;
-
-/// A live and playable world. There are two parts: The map, which has walls and other static objects,
-/// and entities, which can move around and do things and are physics simulated.
-pub struct World<'a> {
- pub map: BSPFile<'a>,
- pub live_entities: EntityStore,
-} \ No newline at end of file
+pub type Vector3i = na::base::Vector3<i32>; \ No newline at end of file