Пример #1
0
        public IReadOnlyCollection <JungleCamp> CreateAll(JungleCampPosition position)
        {
            var camps = _serviceLocator.GetAllServices <JungleCamp>();

            camps.ForEach(f => f.InitializePosition(position));

            camps = camps.OrderBy(f => f.SortKey).ToList();
            return(camps);
        }
Пример #2
0
 public void InitializePosition(JungleCampPosition position)
 {
     Position = position;
 }