コード例 #1
0
        public EffectsService(
            CharacterService characterService,
            StatisticsService statService,
            IRepository <Effect> effectsRepository)
        {
            _characterService = characterService;
            _statService      = statService;

            _effectsRepository = effectsRepository;
        }
コード例 #2
0
ファイル: NpcService.cs プロジェクト: MickMelon/FalloutRPG
        public NpcService(NpcPresetService presetService,
                          SkillsService skillsService,
                          StatisticsService statService,
                          Random random)
        {
            _presetService = presetService;
            _skillsService = skillsService;
            _statService   = statService;

            Npcs      = new List <Character>();
            NpcTimers = new Dictionary <Character, Timer>();

            _rand = random;
        }
コード例 #3
0
        public CharacterService(
            ChargenOptions chargenOptions,
            RoleplayOptions roleplayOptions,
            StatisticsService statsService,
            IRepository <Character> charRepository)
        {
            _chargenOptions  = chargenOptions;
            _roleplayOptions = roleplayOptions;

            _statsService = statsService;

            _statsService.StatisticsUpdated += OnStatisticsUpdated;

            _charRepository = charRepository;
        }
コード例 #4
0
        public RollService(
            EffectsService effectsService,
            RoleplayOptions roleplayOptions,
            SpecialService specService,
            SkillsService skillsService,
            StatisticsService statService,
            Random rand)
        {
            _effectsService  = effectsService;
            _roleplayOptions = roleplayOptions;
            _specService     = specService;
            _skillsService   = skillsService;
            _statService     = statService;

            _rand = rand;
        }
コード例 #5
0
        public ExperienceService(
            CharacterService charService,
            StatisticsService statService,
            DiscordSocketClient client,
            ExperienceOptions expOptions,
            GeneralOptions genOptions,
            ProgressionOptions progressOptions,
            Random random)
        {
            _charService = charService;
            _statService = statService;

            _client = client;

            _expOptions       = expOptions;
            _genOptions       = genOptions;
            _progressOptions  = progressOptions;
            UseOldProgression = _progressOptions.UseOldProgression;

            _random = random;
        }
コード例 #6
0
 public NpcPresetService(SkillsService skillsService, StatisticsService statsService, IRepository <NpcPreset> presetRepository)
 {
     _presetRepository = presetRepository;
     _skillsService    = skillsService;
     _statsService     = statsService;
 }