Remove silly types module
Getty Ritter
5 years ago
1 | |
use crate::types::World;
|
2 | 1 |
use specs::world::WorldExt;
|
3 | 2 |
use specs::{Component, NullStorage, VecStorage};
|
| 3 |
|
| 4 |
pub type World = ncollide2d::world::CollisionWorld<f32, specs::Entity>;
|
4 | 5 |
|
5 | 6 |
/// Register all the components with the world.
|
6 | 7 |
pub fn register(world: &mut specs::World) {
|
6 | 6 |
pub mod game;
|
7 | 7 |
pub mod resources;
|
8 | 8 |
pub mod sys;
|
9 | |
pub mod types;
|
10 | 9 |
|
11 | 10 |
fn main() -> Result<(), ggez::error::GameError> {
|
12 | 11 |
// Make a Context and an EventLoop.
|
1 | 1 |
use crate::components::*;
|
2 | 2 |
use crate::consts;
|
3 | |
use crate::types::World;
|
4 | 3 |
|
5 | 4 |
use specs::world::{Builder, WorldExt};
|
6 | 5 |
use std::path::Path;
|
1 | |
use crate::components::{Blocking, Collision, Position, Velocity};
|
| 1 |
use crate::components::{Blocking, Collision, Position, Velocity, World};
|
2 | 2 |
use crate::game::MyGame;
|
3 | |
use crate::types::World;
|
4 | 3 |
|
5 | 4 |
use nalgebra::{Isometry2, Vector2};
|
6 | 5 |
use specs::{Join, RunNow};
|
1 | |
pub type World = ncollide2d::world::CollisionWorld<f32, specs::Entity>;
|