From 0f2d369a0e43ac8b84ed599f89e1b93f2d814d16 Mon Sep 17 00:00:00 2001 From: szdytom Date: Sun, 4 Feb 2024 22:13:04 +0800 Subject: [PATCH] add unit and land to TeamRanking Signed-off-by: szdytom --- docs/processor.md | 3 ++- processor/pc/pctypes.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/processor.md b/docs/processor.md index 4891af2..004d0b8 100644 --- a/docs/processor.md +++ b/docs/processor.md @@ -311,8 +311,9 @@ | 成员标识符 | 类型 | 含义 | | :--- | :--- | :--- | | `team` | `Team` | 表示的队伍 | +| `land` | `u16` | 队伍占领的格子的总数 | +| `unit` | `i32` | 队伍拥有的单位总数 | | `players` | `PlayerRanking[]` | 队伍中的玩家的信息 | - **类型** `Tile`:用于表示一个格子上的信息。 | 成员标识符 | 类型 | 含义 | diff --git a/processor/pc/pctypes.h b/processor/pc/pctypes.h index 8a961ce..2979cbc 100644 --- a/processor/pc/pctypes.h +++ b/processor/pc/pctypes.h @@ -40,9 +40,11 @@ struct PlayerRanking { struct TeamRanking { Team team; + std::uint16_t land; + std::int32_t unit; std::vector players; - OGPC_DECLARE_ASTUPLE(team, players) + OGPC_DECLARE_ASTUPLE(team, land, unit, players) }; struct Tile {