public ItemQueries(IMapper mapper, IPawContext context) : base(mapper, context) { }
public ItemCommands(IPawContext context) : base(context) { }
public BaseService(IPawContext context) { this.Context = context; }
public SpellQueries(IMapper mapper, IPawContext context) : base(mapper, context) { }
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); }
public EnemyQueries(IMapper mapper, IPawContext context) : base(mapper, context) { }
public VolatileHandler(IVolatileContext volatileContext, IPawContext context) { this.volatileContext = volatileContext; this.context = context; }
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); }
public UserCommands(IPawContext context) : base(context) { }
public GeneratedEnemyCommands(IPawContext context) : base(context) { }
public PlayerQueries(IMapper mapper, IPawContext context) : base(mapper, context) { }
public EnemyCommands(IPawContext context) : base(context) { }
public MapService(IMapper mapper, IPawContext context) { this.Mapper = mapper; this.Context = context; }