From 6ee3384750bb065e4397b02e2cc7f567f96da73a Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:18 +0100 Subject: feat(world): world creation --- stockton-types/src/lib.rs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'stockton-types/src/lib.rs') 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; @@ -17,11 +18,4 @@ pub type Vector3 = na::base::Vector3; pub type Vector2i = na::base::Vector2; /// Alias for convenience -pub type Vector3i = na::base::Vector3; - -/// 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; \ No newline at end of file -- cgit v1.2.3