diff options
Diffstat (limited to 'stockton-types/src/lib.rs')
-rw-r--r-- | stockton-types/src/lib.rs | 16 |
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 |