Returns `true` if this transition requires recording.
(&self)
| 389 | |
| 390 | /// Returns `true` if this transition requires recording. |
| 391 | pub fn requires_recording(&self) -> bool { |
| 392 | self.actions |
| 393 | .iter() |
| 394 | .any(|a| matches!(a, Action::RecordTurn | Action::RecordIfChanged)) |
| 395 | } |
| 396 | |
| 397 | /// Returns the strategy-specific actions (filtering out common actions). |
| 398 | pub fn strategy_actions(&self) -> Vec<Action> { |