Scorers look at the world and boil down arbitrary characteristics into a range of 0.0..=1.0. This module includes the ScorerBuilder trait and some built-in Composite Scorers.
*/
usestd::sync::Arc;
usestd::{cmp::Ordering,sync::Arc};
usebevy::prelude::*;
...
...
@@ -267,3 +267,100 @@ impl ScorerBuilder for SumOfScorersBuilder {
});
}
}
/**
Composite Scorer that takes any number of other Scorers and returns the single highest value [`Score`] if _any_ [`Score`]s are at or above the configured `threshold`.