public void Initialize()
 {
     _pool.SetObjectPositionCache(new Dictionary <TilePos, List <Entity> >());
     _positionableGroup = _pool.GetGroup(GameMatcher.Position);
     _positionableGroup.OnEntityAdded   += (g, e, i, c) => AddToCache(e, c as PositionComponent);
     _positionableGroup.OnEntityRemoved += (g, e, i, c) => RemoveFromCache(e, c as PositionComponent);
 }
Exemple #2
0
 public void SetPool(Pool pool)
 {
     _characters = pool.GetGroup(Matcher.AllOf(GameMatcher.Position, GameMatcher.Character));
     _characters.OnEntityUpdated += (g, e, i, nc, pc) => RemoveLoadedThisTurnOnCharacterMove(pool);
 }
 public void SetPool(Pool pool)
 {
     _actingSequencesGroup = pool.GetGroup(GameMatcher.ActingSequences);
 }
Exemple #4
0
 public void SetPool(Pool pool)
 {
     _dynamicGroup = pool.GetGroup(GameMatcher.Dynamic);
 }
 public void SetPool(Pool pool)
 {
     _cameraGroup = pool.GetGroup(GameMatcher.Camera);
 }
Exemple #6
0
 public void SetPool(Pool pool)
 {
     _pool            = pool;
     _levelExitsGroup = pool.GetGroup(GameMatcher.ExitTrigger);
 }