Example #1
0
 private void AddToCompensation(IGameEntity entity)
 {
     if (_filter.IsCompensation(entity))
     {
         if (_compensationEntityMapCache != null)
         {
             _compensationEntityMapCache.Add(entity.EntityKey, entity);
         }
     }
 }
 public IEnumerable <KeyValuePair <EntityKey, IGameEntity> > GetCompensationEntityList(EntityMap entityMap)
 {
     return(entityMap.Where(entry => _filter.IsCompensation(entry.Value)));
 }