feat: 접경 귀환 기능 추가

This commit is contained in:
Hide_D committed 2023-08-05 08:57:15 +00:00
1 parent 57b12e8c04
commit 905669755f
5 files changed
+214

No files matched your search

+1
View File
@@ -131,6 +131,7 @@ const apiRealPath = {
itemType: ItemTypeKey;
}>,
DieOnPrestart: POST as APICallT<undefined>,
InstantRetreat: POST as APICallT<undefined>,
BuildNationCandidate: POST as APICallT<undefined>,
GetCommandTable: GET as APICallT<undefined, CommandTableResponse>,
GetFrontInfo: GET as APICallT<{
+20
View File
@@ -170,6 +170,26 @@ $(function ($) {
location.reload();
});
$('#instantRetreat').on('click', async function (e) {
e.preventDefault();
if(!confirm('아군 접경으로 이동할까요?')){
return false;
}
try {
await SammoAPI.General.InstantRetreat();
}
catch (e) {
console.log(e);
alert(`실패했습니다: ${e}`);
location.reload();
return;
}
location.reload();
});
$('#vacation').on('click', async function (e) {
e.preventDefault();
if (!confirm('휴가 기능을 신청할까요?')) {