Struct tinyecs::World [] [src]

pub struct World { /* fields omitted */ }

Methods

impl World
[src]

Constructs new Entity World.

Get entity manager for manupalating with entities.

Examples

use tinyecs::*;
let mut world = World::new();

{
  let mut entity_manager = world.entity_manager();
  let _entity = entity_manager.create_entity();
  // _entity.add_component(); or something
}

Add new active system.

Tick all systems in world. All on_added and on_removed will passed inside this method.