예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GangManager"/> class.
 /// </summary>
 /// <param name="gangProvider">Gang provider</param>
 /// <param name="gangerProvider">Ganger provider</param>
 /// <param name="territoryProvider">Territory provider</param>
 /// <param name="weaponProvider">Weapon provider</param>
 /// <param name="injuryProvider">Injury provider</param>
 /// <param name="skillProvider">Skill provider</param>
 /// <param name="diceRoller">Dice roller</param>
 public GangManager(
     IGangProvider gangProvider,
     IGangerProvider gangerProvider,
     ITerritoryProvider territoryProvider,
     IWeaponProvider weaponProvider,
     IInjuryProvider injuryProvider,
     ISkillProvider skillProvider,
     IDiceRoller diceRoller)
 {
     _gangProvider      = gangProvider ?? throw new ArgumentNullException(nameof(gangProvider));
     _gangerProvider    = gangerProvider ?? throw new ArgumentNullException(nameof(gangerProvider));
     _territoryProvider = territoryProvider ?? throw new ArgumentNullException(nameof(territoryProvider));
     _weaponProvider    = weaponProvider ?? throw new ArgumentNullException(nameof(weaponProvider));
     _injuryProvider    = injuryProvider ?? throw new ArgumentNullException(nameof(InjuryProvider));
     _skillProvider     = skillProvider ?? throw new ArgumentNullException(nameof(skillProvider));
     _diceRoller        = diceRoller ?? throw new ArgumentNullException(nameof(diceRoller));
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WeaponManager"/> class.
 /// </summary>
 /// <param name="weaponProvider">Weapon provider</param>
 /// <param name="gangerProvider">Ganger provider</param>
 public WeaponManager(IWeaponProvider weaponProvider, IGangerProvider gangerProvider)
 {
     _weaponProvider = weaponProvider ?? throw new ArgumentNullException(nameof(weaponProvider));
     _gangerProvider = gangerProvider ?? throw new ArgumentNullException(nameof(GangerProvider));
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GangerManager"/> class.
 /// </summary>
 /// <param name="gangerProvider">Ganger provider</param>
 /// <param name="skillManager">Skill manager</param>
 /// <param name="diceRoller">Dice roller</param>
 public GangerManager(IGangerProvider gangerProvider, ISkillManager skillManager, IDiceRoller diceRoller)
 {
     _gangerProvider = gangerProvider ?? throw new ArgumentNullException(nameof(gangerProvider));
     _skillManager   = skillManager ?? throw new ArgumentNullException(nameof(skillManager));
     _diceRoller     = diceRoller ?? throw new ArgumentNullException(nameof(diceRoller));
 }