beet_sim 0.0.7

Game AI simulation primitives built upon beet_flow
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use beet_core::prelude::*;


/// A unique identifier for a stat,
/// when defined by [`StatMap::from_sim_descriptor`] this is the index in the [`SimDescriptor`].
#[derive(
	Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Reflect, Component,
)]
pub struct StatId(pub usize);


impl Default for StatId {
	fn default() -> Self { Self(usize::MAX) }
}