mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
style: 修复KR回调消息协议格式
This commit is contained in:
@@ -10,7 +10,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
## 개요
|
||||
|
||||
- `int msg <br>`
|
||||
- `int msg`<br>
|
||||
메시지 유형입니다.
|
||||
|
||||
```cpp
|
||||
@@ -36,9 +36,9 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
SubTaskStopped, // 서브태스크 중지
|
||||
};
|
||||
```
|
||||
- `const char* details <br>`
|
||||
- `const char* details`<br>
|
||||
메시지 세부사항, JSON 형식입니다. 또한 [필드 설명](#필드-설명)도 참조하세요.
|
||||
- `void* custom_arg <br>`
|
||||
- `void* custom_arg`<br>
|
||||
호출자의 사용자 정의 인수로, `AsstCreateEx` 인터페이스의 `custom_arg` 인수를 전달합니다. C 언어 기반 언어에서는 이를 통해 `this` 포인터를 전달할 수 있습니다.
|
||||
|
||||
## 필드 설명
|
||||
@@ -74,25 +74,25 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
### 자주 사용되는 `what` 필드 값
|
||||
|
||||
- `ConnectFailed <br>`
|
||||
- `ConnectFailed`<br>
|
||||
연결 실패.
|
||||
- `Connected <br>`
|
||||
- `Connected`<br>
|
||||
연결됨. 이제 `uuid` 필드는 비어 있습니다 (다음 단계에서 가져올 것입니다).
|
||||
- `UuidGot <br>`
|
||||
- `UuidGot`<br>
|
||||
UUID를 가져왔습니다.
|
||||
- `UnsupportedResolution <br>`
|
||||
- `UnsupportedResolution`<br>
|
||||
해상도가 지원되지 않습니다.
|
||||
- `ResolutionError <br>`
|
||||
- `ResolutionError`<br>
|
||||
해상도를 가져올 수 없습니다.
|
||||
- `Reconnecting <br>`
|
||||
- `Reconnecting`<br>
|
||||
연결이 끊어졌습니다 (adb/에뮬레이터 충돌), 재연결 중
|
||||
- `Reconnected <br>`
|
||||
- `Reconnected`<br>
|
||||
연결이 끊어졌습니다 (adb/에뮬레이터 충돌), 재연결 성공
|
||||
- `Disconnect <br>`
|
||||
- `Disconnect`<br>
|
||||
연결이 끊어졌습니다 (adb/에뮬레이터 충돌), 재연결 실패
|
||||
- `ScreencapFailed <br>`
|
||||
- `ScreencapFailed`<br>
|
||||
스크린샷 실패 (adb/에뮬레이터 충돌), 재연결 실패
|
||||
- `TouchModeNotAvailable <br>`
|
||||
- `TouchModeNotAvailable`<br>
|
||||
터치 모드를 사용할 수 없습니다
|
||||
|
||||
### AsyncCallInfo
|
||||
@@ -124,39 +124,39 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
#### 자주 사용되는 `taskchain` 필드 값
|
||||
|
||||
- `StartUp <br>`
|
||||
- `StartUp`<br>
|
||||
시작.
|
||||
- `CloseDown <br>`
|
||||
- `CloseDown`<br>
|
||||
게임 클라이언트 닫기
|
||||
- `Fight <br>`
|
||||
- `Fight`<br>
|
||||
전투.
|
||||
- `Mall <br>`
|
||||
- `Mall`<br>
|
||||
상점.
|
||||
- `Recruit <br>`
|
||||
- `Recruit`<br>
|
||||
자동 인원 모집.
|
||||
- `Infrast <br>`
|
||||
- `Infrast`<br>
|
||||
시설.
|
||||
- `Award <br>`
|
||||
- `Award`<br>
|
||||
일일 보상 받기
|
||||
- `Roguelike <br>`
|
||||
- `Roguelike`<br>
|
||||
로그라이크.
|
||||
- `Copilot <br>`
|
||||
- `Copilot`<br>
|
||||
JSON 파일로 자동 전투
|
||||
- `SSSCopilot <br>`
|
||||
- `SSSCopilot`<br>
|
||||
JSON 파일로 자동 전투 for STATIONARY SECURITY SERVICE
|
||||
- `Depot <br>`
|
||||
- `Depot`<br>
|
||||
창고 인식
|
||||
- `OperBox <br>`
|
||||
- `OperBox`<br>
|
||||
오퍼레이터 박스 인식
|
||||
- `ReclamationAlgorithm <br>`
|
||||
- `ReclamationAlgorithm`<br>
|
||||
Reclamation Algorithm (CN 클라이언트의 새로운 모드)
|
||||
- `Custom <br>`
|
||||
- `Custom`<br>
|
||||
사용자 정의 태스크
|
||||
- `SingleStep <br>`
|
||||
- `SingleStep`<br>
|
||||
단일 단계 태스크
|
||||
- `VideoRecognition <br>`
|
||||
- `VideoRecognition`<br>
|
||||
Copilot용 비디오 인식
|
||||
- `Debug <br>`
|
||||
- `Debug`<br>
|
||||
디버그.
|
||||
|
||||
### TaskChain과 관련된 정보
|
||||
@@ -188,7 +188,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
#### 자주 사용되는 `subtask` 필드 값
|
||||
|
||||
- `ProcessTask <br>`
|
||||
- `ProcessTask`<br>
|
||||
```json
|
||||
// 상세 정보에 대한 예시
|
||||
{
|
||||
@@ -203,49 +203,49 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
##### 자주 사용되는 `task` 필드 값
|
||||
|
||||
- `StartButton2 <br>`
|
||||
- `StartButton2`<br>
|
||||
시작 중입니다.
|
||||
- `MedicineConfirm <br>`
|
||||
- `MedicineConfirm`<br>
|
||||
이성 회복제 사용 확인.
|
||||
- `StoneConfirm <br>`
|
||||
- `StoneConfirm`<br>
|
||||
오리지늄 조각 사용 확인.
|
||||
- `RecruitRefreshConfirm <br>`
|
||||
- `RecruitRefreshConfirm`<br>
|
||||
공개모집 새로고침 여부 확인.
|
||||
- `RecruitConfirm <br>`
|
||||
- `RecruitConfirm`<br>
|
||||
공개모집 확인.
|
||||
- `RecruitNowConfirm <br>`
|
||||
- `RecruitNowConfirm`<br>
|
||||
즉시 완료 허가증 확인.
|
||||
- `ReportToPenguinStats <br>`
|
||||
- `ReportToPenguinStats`<br>
|
||||
펭귄 스텟에 보고합니다.
|
||||
- `ReportToYituliu <br>`
|
||||
- `ReportToYituliu`<br>
|
||||
Yituliu 빅데이터에 보고합니다.
|
||||
- `InfrastDormDoubleConfirmButton <br>`
|
||||
- `InfrastDormDoubleConfirmButton`<br>
|
||||
기반시설 더블 확인 버튼입니다. 다른 오퍼레이터와 충돌이 있을 때만 발생합니다.
|
||||
- `StartExplore <br>`
|
||||
- `StartExplore`<br>
|
||||
통합전략: 시작 중입니다.
|
||||
- `StageTraderInvestConfirm <br>`
|
||||
- `StageTraderInvestConfirm`<br>
|
||||
통합전략: 오리지늄 각뿔 아이템 거래.
|
||||
- `StageTraderInvestSystemFull <br>`
|
||||
- `StageTraderInvestSystemFull`<br>
|
||||
통합전략: 투자 시스템이 가득 참.
|
||||
- `ExitThenAbandon <br>`
|
||||
- `ExitThenAbandon`<br>
|
||||
통합전략: 나가기 확인.
|
||||
- `MissionCompletedFlag <br>`
|
||||
- `MissionCompletedFlag`<br>
|
||||
통합전략: 미션 완료.
|
||||
- `MissionFailedFlag <br>`
|
||||
- `MissionFailedFlag`<br>
|
||||
통합전략: 미션 실패.
|
||||
- `StageTraderEnter <br>`
|
||||
- `StageTraderEnter`<br>
|
||||
통합전략: 교활한 상인 진입.
|
||||
- `StageSafeHouseEnter <br>`
|
||||
- `StageSafeHouseEnter`<br>
|
||||
통합전략: 안전가옥 진입.
|
||||
- `StageEncounterEnter <br>`
|
||||
- `StageEncounterEnter`<br>
|
||||
통합전략: 우연한 만남 진입.
|
||||
- `StageCombatDpsEnter <br>`
|
||||
- `StageCombatDpsEnter`<br>
|
||||
통합전략: 작전 진입.
|
||||
- `StageEmergencyDps <br>`
|
||||
- `StageEmergencyDps`<br>
|
||||
통합전략: 긴급 작전 진입.
|
||||
- `StageDreadfulFoe <br>`
|
||||
- `StageDreadfulFoe`<br>
|
||||
통합전략: 보스 진입.
|
||||
- `StartGameTask <br>`
|
||||
- `StartGameTask`<br>
|
||||
클라이언트를 시작할 수 없음 (클라이언트 유형과 호환되지 않는 구성 파일).
|
||||
- 기타 할 일
|
||||
|
||||
@@ -263,7 +263,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
|
||||
#### 자주 사용되는 `what`과 `details` 필드 값
|
||||
|
||||
- `StageDrops <br>`
|
||||
- `StageDrops`<br>
|
||||
스테이지 드롭 정보
|
||||
|
||||
```json
|
||||
@@ -310,7 +310,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
]
|
||||
}
|
||||
```
|
||||
- `RecruitTagsDetected <br>`
|
||||
- `RecruitTagsDetected`<br>
|
||||
공개모집 태그 감지
|
||||
|
||||
```json
|
||||
@@ -326,7 +326,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
}
|
||||
|
||||
```
|
||||
- `RecruitSpecialTag <br>`
|
||||
- `RecruitSpecialTag`<br>
|
||||
고급 특별 채용 감지
|
||||
|
||||
```
|
||||
@@ -335,7 +335,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"tag": "高级资深干员" // 고급 특별 채용
|
||||
}
|
||||
```
|
||||
- `RecruitResult <br>`
|
||||
- `RecruitResult`<br>
|
||||
공개모집 결과
|
||||
|
||||
```json
|
||||
@@ -411,7 +411,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
]
|
||||
}
|
||||
```
|
||||
- `RecruitTagsRefreshed <br>`
|
||||
- `RecruitTagsRefreshed`<br>
|
||||
공개모집 태그 갱신 완료
|
||||
|
||||
```json
|
||||
@@ -430,7 +430,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"continue": true, // 계속 새로고침할지 말지
|
||||
}
|
||||
```
|
||||
- `RecruitTagsSelected <br>`
|
||||
- `RecruitTagsSelected`<br>
|
||||
공개모집 태그 선택 완료
|
||||
|
||||
```json
|
||||
@@ -442,11 +442,11 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
]
|
||||
}
|
||||
```
|
||||
- `RecruitSlotCompleted <br>`
|
||||
- `RecruitSlotCompleted`<br>
|
||||
영입 슬롯 완료
|
||||
- `RecruitError <br>`
|
||||
- `RecruitError`<br>
|
||||
영입 인식 오류
|
||||
- `EnterFacility <br>`
|
||||
- `EnterFacility`<br>
|
||||
기반시설 입장
|
||||
|
||||
```json
|
||||
@@ -456,7 +456,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"index": 0 // 시설 ID
|
||||
}
|
||||
```
|
||||
- `NotEnoughStaff <br>`
|
||||
- `NotEnoughStaff`<br>
|
||||
사용 가능한 오퍼레이터가 부족함
|
||||
|
||||
```json
|
||||
@@ -466,7 +466,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"index": 0 // 시설 ID
|
||||
}
|
||||
```
|
||||
- `ProductOfFacility <br>`
|
||||
- `ProductOfFacility`<br>
|
||||
시설의 생산물
|
||||
|
||||
```json
|
||||
@@ -477,7 +477,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"index": 0 // 시설 ID
|
||||
}
|
||||
```
|
||||
- `StageInfo <br>`
|
||||
- `StageInfo`<br>
|
||||
자동 전투 스테이지 정보
|
||||
|
||||
```json
|
||||
@@ -486,9 +486,9 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"name": string // 스테이지 이름
|
||||
}
|
||||
```
|
||||
- `StageInfoError <br>`
|
||||
- `StageInfoError`<br>
|
||||
자동 전투 스테이지 정보 오류
|
||||
- `PenguinId <br>`
|
||||
- `PenguinId`<br>
|
||||
PenguinStats ID
|
||||
|
||||
```json
|
||||
@@ -497,7 +497,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
"id": string
|
||||
}
|
||||
```
|
||||
- `DepotInfo <br>`
|
||||
- `DepotInfo`<br>
|
||||
창고 인식 결과
|
||||
|
||||
```json
|
||||
@@ -538,7 +538,7 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
}
|
||||
// 현재는 ArkPlanner와 Lolicon 포맷만 지원하며, 미래에 더 많은 웹사이트가 지원될 예정입니다.
|
||||
```
|
||||
- `OperBoxInfo <br>`
|
||||
- `OperBoxInfo`<br>
|
||||
오퍼레이터 보유 목록 인식 결과
|
||||
|
||||
```json
|
||||
@@ -582,5 +582,5 @@ typedef void(ASST_CALL* AsstCallback)(int msg, const char* details, void* custom
|
||||
}
|
||||
]
|
||||
```
|
||||
- `UnsupportedLevel <br>`
|
||||
- `UnsupportedLevel`<br>
|
||||
지원되지 않는 레벨 이름
|
||||
|
||||
Reference in New Issue
Block a user