feat: add resurrection
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Client.Domain.Enums
|
||||
UseItem,
|
||||
ToggleSoulshot,
|
||||
Sit,
|
||||
Stand
|
||||
Stand,
|
||||
RestartPoint
|
||||
}
|
||||
}
|
||||
|
18
Client/Domain/Enums/RestartPointTypeEnum.cs
Normal file
18
Client/Domain/Enums/RestartPointTypeEnum.cs
Normal 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
|
||||
}
|
||||
}
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user