private SoundEffectInstance?GetSoundEffect(ITacticalActStatsSubScheme actStatScheme) { var usedActDescription = ActDescription.CreateFromActStats(actStatScheme); var attackSoundEffect = _personSoundStorage.GetActStartSound(usedActDescription); var attackSoundEffectInstance = attackSoundEffect?.CreateInstance(); return(attackSoundEffectInstance); }
public MonsterTacticalAct(ITacticalActStatsSubScheme stats) { Stats = stats ?? throw new ArgumentNullException(nameof(stats)); if (stats.Efficient is null) { throw new ArgumentException($"{stats.Efficient} is null.", nameof(stats)); } Efficient = stats.Efficient; ToHit = new Roll(6, 1); }
public MonsterTacticalAct(ITacticalActStatsSubScheme stats) { Stats = stats; Efficient = stats.Efficient; ToHit = new Roll(6, 1); }
public MonsterTacticalAct(ITacticalActStatsSubScheme stats) { Stats = stats ?? throw new System.ArgumentNullException(nameof(stats)); Efficient = stats.Efficient; ToHit = new Roll(6, 1); }