gamai 0.1.39

Modular task switching library suitable for Game AI and Robotics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::prelude::*;
use bevy_ecs::prelude::*;
use serde::Deserialize;
use serde::Serialize;

#[action(system=empty_action)]
#[derive(Debug, Default, Clone, Serialize, Deserialize, Component)]
pub struct SetScore {
	#[shared]
	pub score: Score,
}

impl SetScore {
	pub fn new(score: Score) -> Self { Self { score } }
}