1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use gamai::prelude::*; pub fn main() {} #[action(system=foo)] #[derive(Clone, Serialize, Deserialize, Component)] pub struct Foo { health: u32, #[shared] score: Score, } fn foo() {}