|
@@ -1,9 +1,7 @@
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
-using System.Timers;
|
|
|
|
using MafiaTelegramBot.Game.GameRooms;
|
|
using MafiaTelegramBot.Game.GameRooms;
|
|
using MafiaTelegramBot.Models;
|
|
using MafiaTelegramBot.Models;
|
|
using MafiaTelegramBot.Resources;
|
|
using MafiaTelegramBot.Resources;
|
|
-using Telegram.Bot.Types;
|
|
|
|
using User = MafiaTelegramBot.DataBase.Entity.UserEntity;
|
|
using User = MafiaTelegramBot.DataBase.Entity.UserEntity;
|
|
|
|
|
|
namespace MafiaTelegramBot.Game.GameRoles
|
|
namespace MafiaTelegramBot.Game.GameRoles
|
|
@@ -12,26 +10,20 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
{
|
|
{
|
|
public override Roles RoleKey => Roles.Hooker;
|
|
public override Roles RoleKey => Roles.Hooker;
|
|
|
|
|
|
- public override async Task NightAction()
|
|
|
|
|
|
+ public override Task NightAction()
|
|
{
|
|
{
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public override async Task ApplyNightActionResult()
|
|
|
|
- {
|
|
|
|
-
|
|
|
|
|
|
+ return Task.CompletedTask;
|
|
}
|
|
}
|
|
|
|
|
|
- public override Task CancelNightActionResult(string message)
|
|
|
|
|
|
+ public override Task ApplyNightActionResult()
|
|
{
|
|
{
|
|
- //TODO why action canceled
|
|
|
|
return Task.CompletedTask;
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|
|
|
|
- public override async Task<Message> SetNightTarget(long userId)
|
|
|
|
|
|
+ public override async Task SetNightTarget(long userId)
|
|
{
|
|
{
|
|
NightTargetId = userId;
|
|
NightTargetId = userId;
|
|
- return await Bot.EditMessageAsync(Player.ChatId, MessageId, $"{strings.you_choose_target} {Room.Players[userId].NickName}");
|
|
|
|
|
|
+ await Bot.EditMessageAsync(Player.ChatId, MessageId, $"{strings.you_choose_target} {Room.Players[userId].NickName}");
|
|
}
|
|
}
|
|
|
|
|
|
public HookerRole(GameRoom room, Player player) : base(room, player) { }
|
|
public HookerRole(GameRoom room, Player player) : base(room, player) { }
|