- summary: A mark laid on the fight map (glyph, trap, wall, portal, rune ...): who laid it, with which spell, on which cells, for how long.
- area: Game.Common
A mark laid on the fight map (glyph, trap, wall, portal, rune ...): who laid it, with which spell, on which cells, for how long.
Kind struct · Area Game.Common
A mark laid on the fight map: a glyph, a trap, a wall, a portal, a rune ... It is
carried by MarkCells when it appears and by FightJoinRunningEvent.marks when
you join a running fight.
TO TRACK A MARK
1. Key it by FightMark.mark_id; UnmarkCells removes it by that id.
2. Its cells: for each entry of FightMark.cells, the cell and, when the entry
has a zone size, the zone of that size around it (MarkedCell).
3. Who and what: FightMark.author_id laid it, for FightMark.team, with the
spell FightMark.spell_id at level FightMark.spell_level; its kind is
FightMark.mark_type (MarkType: GLYPH, TRAP, WALL, PORTAL, RUNE; value 5 is a
sixth kind with no known name, value 6 is never used by the client).
4. What it does when triggered: for most kinds, the spell FightMark.first_param
at level FightMark.second_param (one kind triggers its own spell).
5. FightMark.active says whether it currently triggers; it lasts from
FightMark.start_turn to FightMark.end_turn (FightTurn positions).
6. FightMark.mark_impact_cell is the cell the spell targeted, and
FightMark.cast_cell_id the cell it was cast from.
One declared bool is never read: padding.
Not sent on its own — a record carried by MarkCells and FightJoinRunningEvent, never sent on its own. inferred
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | team | Team | The team the mark belongs to. | never |
| 2 | start_turn | FightTurn | The turn the mark starts. Name ours, after FightTurnWindow(start). Type FightTurn (round, order). | never |
| 3 | mark_impact_cell | int32 | The cell the spell that laid the mark targeted (its centre). (cell id) | never |
| 4 | mark_type | MarkType | The kind of mark (glyph, trap, wall, portal, rune ...). Its enum is MarkType: GLYPH, TRAP, WALL, PORTAL, RUNE, plus an unnamed sixth kind (value 5) and a value the client never converts (6). | never |
| 6 | author_id | int64 | The fighter that laid the mark. (fighter id) | never |
| 7 | cells | repeated MarkedCell | The cells the mark covers. Element type MarkedCell. | never |
| 8 | active | bool | Whether the mark currently triggers. | never |
| 9 | third_param | int32 | Third parameter of the mark (for one kind, the colour of its cells). Name ours, after FightMark(param3). | never |
| 10 | effect_id | int32 | The spell effect that laid the mark, when known. Explicit presence: absent is not the same as zero. Name ours, after FightMark(effectId). Optional: absent when unknown. | never |
| 11 | spell_id | int32 | The spell that laid the mark. (spell id) | never |
| 12 | cast_cell_id | int32 | The cell the spell was cast from. (cell id) Name ours, after the client's FightMark(castCellId). | never |
| 13 | second_param | int32 | Second parameter: for most kinds, the level of the triggered spell. Name ours, after FightMark(param2). The client uses it as the triggered spell's level. | never |
| 14 | end_turn | FightTurn | The turn the mark ends. Name ours, after FightTurnWindow(end). Type FightTurn (round, order). | never |
| 15 | first_param | int32 | First parameter of the mark: for most kinds, the spell it triggers. Name ours, after FightMark(param1). The client looks it up as a spell id for the triggered spell. | never |
| 16 | spell_level | int32 | The level of that spell. | never |
| 17 | mark_id | int32 | Identifier of the mark; UnmarkCells removes it by this id. | never |