feat: eslint 적용 및 관련 코드 일괄 수정
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user