Skip to main content

undo

Function undo 

Source
pub fn undo(
    log: &[LoggedEvent],
    target: Option<Uuid>,
    mine: impl Fn(Uuid) -> bool,
) -> Result<Vec<CombatEvent>, CombatError>
Expand description

The events that undo target (or, if None, the latest command for which mine holds that isn’t undone yet), given the combat’s full log. mine says whether a command was sent by whoever is undoing.