コード例 #1
0
ファイル: ItemQueries.cs プロジェクト: TnS101/Paw-Powah
 public ItemQueries(IMapper mapper, IPawContext context)
     : base(mapper, context)
 {
 }
コード例 #2
0
ファイル: ItemCommands.cs プロジェクト: TnS101/Paw-Powah
 public ItemCommands(IPawContext context)
     : base(context)
 {
 }
コード例 #3
0
 public BaseService(IPawContext context)
 {
     this.Context = context;
 }
コード例 #4
0
 public SpellQueries(IMapper mapper, IPawContext context)
     : base(mapper, context)
 {
 }
コード例 #5
0
ファイル: VolatileHandler.cs プロジェクト: TnS101/Paw-Powah
        private async Task BuffHandler(long unitId, string buffType, double buffPower, string operation, IPawContext context)
        {
            var unit = await context.Players.FindAsync(unitId);

            new StatProcessor().Execute(unit, buffType, buffPower, operation);
        }
コード例 #6
0
 public EnemyQueries(IMapper mapper, IPawContext context)
     : base(mapper, context)
 {
 }
コード例 #7
0
ファイル: VolatileHandler.cs プロジェクト: TnS101/Paw-Powah
 public VolatileHandler(IVolatileContext volatileContext, IPawContext context)
 {
     this.volatileContext = volatileContext;
     this.context         = context;
 }
コード例 #8
0
ファイル: VolatileHandler.cs プロジェクト: TnS101/Paw-Powah
        public async Task SetDuration(long unitId, double effectDuration, double effectPower, string effectType, IVolatileContext volatileContext, IPawContext context)
        {
            volatileContext.Durations.Add(new Duration
            {
                UnitId      = unitId,
                EffectType  = effectType,
                EffectPower = effectPower,
                EndsOn      = DateTime.UtcNow.AddSeconds(effectDuration),
            });

            await this.BuffHandler(unitId, effectType, effectPower, "+", context);

            await volatileContext.SaveChangesAsync(CancellationToken.None);

            await context.SaveChangesAsync(CancellationToken.None);
        }
コード例 #9
0
 public UserCommands(IPawContext context)
     : base(context)
 {
 }
コード例 #10
0
 public GeneratedEnemyCommands(IPawContext context)
     : base(context)
 {
 }
コード例 #11
0
 public PlayerQueries(IMapper mapper, IPawContext context)
     : base(mapper, context)
 {
 }
コード例 #12
0
 public EnemyCommands(IPawContext context)
     : base(context)
 {
 }
コード例 #13
0
 public MapService(IMapper mapper, IPawContext context)
 {
     this.Mapper  = mapper;
     this.Context = context;
 }