To properly work with Blueprint
s, it’s necessary to have Source
and Target
Structure
s to handle Material
s.
A Source
can be set to spawn any Material
, while a Target
can consume it.
Both of the two Structure
s keep track of their spawned or consumed Material
count.
pub struct Source {
pub spawning: Material,
pub n_spawned: usize,
}
pub struct Target {
pub accepting: Option<Material>,
pub n_accepted: usize,
}