sm64_binds/sm64/
rng_config.rs

1#[derive(Debug, Clone, Copy)]
2pub struct RandomConfig {
3    pub(crate) max_random_action: u32,
4    pub(crate) max_window_length: u32,
5    pub(crate) a_prob: f32,
6    pub(crate) b_prob: f32,
7    pub(crate) z_prob: f32,
8}
9impl RandomConfig {
10    pub fn default() -> Self {
11        RandomConfig::new(
12            5, 
13            100, 
14            0.5, 
15            0.5, 
16            0.2)
17    }
18
19    pub fn new(max_random_action: u32, max_window_length: u32, a_prob: f32, b_prob: f32, z_prob: f32) -> Self {
20        return RandomConfig { 
21            max_random_action,
22            max_window_length, 
23            a_prob, 
24            b_prob,
25            z_prob 
26        }
27    }
28}