feat: add resurrection

This commit is contained in:
Иванов Иван
2024-08-12 18:20:55 +02:00
parent c3f6d10dc6
commit c61019961b
13 changed files with 94 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ namespace Client.Domain.Enums
UseItem,
ToggleSoulshot,
Sit,
Stand
Stand,
RestartPoint
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Domain.Enums
{
public enum RestartPointTypeEnum: short
{
Village = 0,
ClanHall,
Castle,
Siege,
Festival,
Jail = 27
}
}

View File

@@ -177,6 +177,15 @@ namespace Client.Domain.Service
SendMessage(OutgoingMessageTypeEnum.Stand);
}
public void RequestRestartPoint(RestartPointTypeEnum type)
{
if (hero == null)
{
return;
}
SendMessage(OutgoingMessageTypeEnum.RestartPoint, type);
}
private void SendMessage<T>(OutgoingMessageTypeEnum type, T? content = default)
{