internal CrewInstanceInfo this[string role] { get { CrewHelper.ThrowIfRoleInvalid(role); return(_crews.GetOrCreate(role, () => new CrewInstanceInfo(role))); } set { if (value == null) { throw new ArgumentNullException("value"); } CrewHelper.ThrowIfRoleInvalid(role); _crews[role] = value; } }
public CrewInstanceInfo(string role) { CrewHelper.ThrowIfRoleInvalid(role); this.Role = role; this.SkillKeys = new string[0]; }