feat: eslint 적용 및 관련 코드 일괄 수정

This commit is contained in:
2026-01-05 15:46:47 +00:00
parent cb312f02b3
commit c965b1120f
387 changed files with 39808 additions and 38800 deletions
+9 -9
View File
@@ -22,23 +22,23 @@ and `diplomacy`.
- `Message::getMessagesFromMailBox()` reads by mailbox/type with validity
filtering (`valid_until > now`).
- `Message::buildFromArray()` instantiates:
- `DiplomaticMessage` when type is diplomacy.
- `ScoutMessage` or `RaiseInvaderMessage` when `option.action` matches.
- `DiplomaticMessage` when type is diplomacy.
- `ScoutMessage` or `RaiseInvaderMessage` when `option.action` matches.
## DiplomaticMessage Flow
`DiplomaticMessage` wraps diplomacy requests and accepts/rejects them:
- Supported actions:
- `TYPE_NO_AGGRESSION` (불가침)
- `TYPE_CANCEL_NA` (불가침 파기)
- `TYPE_STOP_WAR` (종전)
- `TYPE_NO_AGGRESSION` (불가침)
- `TYPE_CANCEL_NA` (불가침 파기)
- `TYPE_STOP_WAR` (종전)
- `agreeMessage()` validates:
- message is still valid
- receiver is a valid diplomacy officer
- message is still valid
- receiver is a valid diplomacy officer
- On accept, builds and runs the matching nation command:
- `che_불가침수락`, `che_불가침파기수락`, `che_종전수락`
- Uses `NoRNG` to avoid randomness in acceptance.
- `che_불가침수락`, `che_불가침파기수락`, `che_종전수락`
- Uses `NoRNG` to avoid randomness in acceptance.
Each acceptance updates `diplomacyDetail` with command briefs and writes logs.