AllianceExpiredUpdate
python
class AllianceExpiredUpdate(BaseModel):
type: Literal[GameUpdateType.AllianceExpired]
player1ID: PlayerSmallID
player2ID: PlayerSmallIDjava
public class AllianceExpiredUpdate {
public int type;
@NotNull public PlayerSmallID player1ID;
@NotNull public PlayerSmallID player2ID;
}Encapsulates event data for when an alliance expires between two players.
The "parent" type is RelevantGameUpdate, which includes all game update types that are relevant to the bot's decision-making process in the ConquerHack event.
You can check whether this event is relevant to your bot by looking at the player1ID and player2ID attributes to see if either is your bot. Or you can use the update_is_for_me utility function.
Attributes
| Attribute | Type | Description |
|---|---|---|
type | GameUpdateType.AllianceExpired | The type of game update, which is always AllianceExpired for this class. |
player1ID | PlayerSmallID | The small ID of one of the players whose alliance has expired. |
player2ID | PlayerSmallID | The small ID of the other player whose alliance has expired. |
