public void AddWorld(IWorld world) { Worlds.Add(world); world.BlockRepository = BlockRepository; world.BlockChanged += HandleBlockChanged; var manager = new EntityManager(this, world); EntityManagers.Add(manager); }
public void AddWorld(IWorld world) { Worlds.Add(world); world.BlockRepository = BlockRepository; world.ChunkGenerated += HandleChunkGenerated; world.ChunkLoaded += HandleChunkLoaded; world.BlockChanged += HandleBlockChanged; var manager = new EntityManager(this, world); EntityManagers.Add(manager); var lighter = new WorldLighting(world, BlockRepository); WorldLighters.Add(lighter); foreach (var chunk in world) { HandleChunkLoaded(world, new ChunkLoadedEventArgs(chunk)); } }
public override void Process(EntityManagers.EntityManagerManager toProcess, Microsoft.Xna.Framework.GameTime gameTime) { }
public override void Initialize(EntityManagers.EntityManagerManager entityStorage) { }
public override void Initialize(EntityManagers.EntityManagerManager entityStorage) { animated = entityStorage.DefaultManager; }