gdritter repos wenaglia / master
Remove silly types module Getty Ritter 4 years ago
5 changed file(s) with 3 addition(s) and 6 deletion(s). Collapse all Expand all
1 use crate::types::World;
21 use specs::world::WorldExt;
32 use specs::{Component, NullStorage, VecStorage};
3
4 pub type World = ncollide2d::world::CollisionWorld<f32, specs::Entity>;
45
56 /// Register all the components with the world.
67 pub fn register(world: &mut specs::World) {
66 pub mod game;
77 pub mod resources;
88 pub mod sys;
9 pub mod types;
109
1110 fn main() -> Result<(), ggez::error::GameError> {
1211 // Make a Context and an EventLoop.
11 use crate::components::*;
22 use crate::consts;
3 use crate::types::World;
43
54 use specs::world::{Builder, WorldExt};
65 use std::path::Path;
1 use crate::components::{Blocking, Collision, Position, Velocity};
1 use crate::components::{Blocking, Collision, Position, Velocity, World};
22 use crate::game::MyGame;
3 use crate::types::World;
43
54 use nalgebra::{Isometry2, Vector2};
65 use specs::{Join, RunNow};
+0
-1
src/types.rs less more
1 pub type World = ncollide2d::world::CollisionWorld<f32, specs::Entity>;