- summary: Who a fighter is: its id, its team, and whether it is a player, a monster, a companion or a summon.
- area: Game.Fight
Who a fighter is: its id, its team, and whether it is a player, a monster, a companion or a summon.
Kind struct · Area Game.Fight
Identifies one fighter in DetailedStatistics (the end-of-fight statistics).
WHAT TO READ
1. id: the fighter's id (your character id for you; negative ids for monsters and summons).
2. team: the fighter's side (Team).
3. kind: exactly one branch is set:
- player: a player character;
- monster: a monster;
- companion: a player's companion; its master is the owning player;
- summon: a summon; its summoner is the fighter that summoned it.
To attach a summon's or companion's statistics to its owner, follow summoner / master
(they are FighterIdentity records too). An unnamed enum member is never used; ignore it.
Not sent on its own — a record carried by DetailedStatistics.fighter, never sent on its own. inferred
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | id | int64 | The fighter's id: the character id for a player, a negative id for a monster or summon. (entity id) | never |
| 7 | team | Team | The fighter's side. A Team. | never |
| 2 | monster | FighterIdentity.Monster | Set when the fighter is a monster. A FighterIdentity.Monster. Branch of kind.Named after its branch type, which the type-name table spells. | never |
| 3 | summon | Summon | Set when the fighter is a summon. A FighterIdentity.Summon. Branch of kind.Named after its branch type, which the type-name table spells. | never |
| 4 | companion | FighterIdentity.Companion | Set when the fighter is a player's companion. A FighterIdentity.Companion. Branch of kind.Named after its branch type, which the type-name table spells. | never |
| 5 | player | Player | Set when the fighter is a player character. A FighterIdentity.Player. Branch of kind.Named after its branch type, which the type-name table spells. | never |