public IPlayerContextDto Map(IPlayerContext playerContext) { return(new PlayerContextDto() { Drones = playerContext.Drones.Select(Map), PlayerName = playerContext.PlayerName, Level = playerContext.Level, Resources = playerContext.Resources, IsResourceGoalAchieved = playerContext.IsResourceGoalAchieved(), StartTime = playerContext.GetStartTime(), TimeWhenResoucesGoalIsAchieved = playerContext.GetTimeWhenResoucesGoalIsAchieved(), SpentTime = playerContext.GetSpentTime(), IsTimeGoalAchieved = playerContext.IsTimeGoalAchieved() }); }