testing something, won't compile
This commit is contained in:
40
NadekoBot.Core/Modules/Gambling/Common/CurrencyRaffleGame.cs
Normal file
40
NadekoBot.Core/Modules/Gambling/Common/CurrencyRaffleGame.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using NadekoBot.Core.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Modules.Gambling.Common
|
||||
{
|
||||
public class CurrencyRaffleGame
|
||||
{
|
||||
private readonly HashSet<(string, ulong)> _users = new HashSet<(string, ulong)>();
|
||||
private readonly int _amount;
|
||||
private readonly CurrencyService _cs;
|
||||
private readonly DbService _db;
|
||||
private bool running;
|
||||
|
||||
public CurrencyRaffleGame(int amount, CurrencyService cs, DbService db)
|
||||
{
|
||||
if (amount < 1)
|
||||
throw new ArgumentOutOfRangeException();
|
||||
|
||||
_amount = amount;
|
||||
_cs = cs;
|
||||
_db = db;
|
||||
}
|
||||
|
||||
public async Task<bool> AddUser(string username, ulong userId)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ForceStop()
|
||||
{
|
||||
lock (_locker)
|
||||
{
|
||||
running = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user