use std::ops::Deref;
use crate::rollresult::SingleRollResult;
#[derive(Debug, Clone)]
pub struct RepeatedRollResult {
pub(crate) rolls: Vec<SingleRollResult>,
pub(crate) total: Option<i64>,
}
impl Deref for RepeatedRollResult {
type Target = Vec<SingleRollResult>;
fn deref(&self) -> &Self::Target {
&self.rolls
}
}
impl RepeatedRollResult {
pub fn get_total(&self) -> Option<i64> {
self.total
}
}