use event_simulation::Simulation;
use multilinear::{Change, MultilinearInfo, MultilinearSimulation};
fn main() {
let mut story = MultilinearInfo::new();
let place = story.add_aspect();
let clothes = story.add_aspect();
let event_move = story
.add_event()
.with_change(&[Change::transition(place, 0, 1)])
.unwrap()
.event();
let event_clothes = story
.add_event()
.with_change(&[
Change::condition(place, 0),
Change::transition(clothes, 1, 0),
])
.unwrap()
.event();
let mut simulation = MultilinearSimulation::new(story);
simulation.try_call(event_clothes);
simulation.try_call(event_move);
simulation.try_revert(event_move);
}