Exemple #1
0
        public static IEnumerable <TeleportDescription> SelectMany(this ITeleportDescriptionRepository descriptionRepository, IEnumerable <int> descriptionIDs)
        {
            var descriptions = descriptionRepository.GetAll().ToDictionary(d => d.id);

            foreach (var id in descriptionIDs)
            {
                var d = descriptions.GetOrDefault(id);
                if (d != null)
                {
                    yield return(d);
                }
            }
        }
Exemple #2
0
 public TeleportColumn(ITeleportDescriptionRepository teleportDescriptionRepository)
 {
     _teleportDescriptionRepository = teleportDescriptionRepository;
     _isEnabled = DynamicProperties.GetProperty <int>(k.enabled);
 }
Exemple #3
0
 public TeleportConnectColumns(ITeleportDescriptionRepository teleportDescriptionRepository, TeleportDescriptionBuilder.Factory descriptionBuilderFactory)
 {
     _teleportDescriptionRepository = teleportDescriptionRepository;
     _descriptionBuilderFactory     = descriptionBuilderFactory;
 }
 public TeleportList(ITeleportDescriptionRepository descriptionRepository)
 {
     _descriptionRepository = descriptionRepository;
 }