2024-07-05 21:10:25 +00:00
|
|
|
use comfy::*;
|
|
|
|
|
2024-07-06 11:33:58 +00:00
|
|
|
use crate::{
|
|
|
|
activities::{house, overworld, Activity},
|
|
|
|
State
|
|
|
|
};
|
2024-07-05 21:10:25 +00:00
|
|
|
|
2024-07-06 11:33:58 +00:00
|
|
|
pub fn update(state: &mut State, engine: &mut EngineContext) {
|
|
|
|
match state.activity {
|
|
|
|
Activity::House => house::update(state, engine),
|
|
|
|
Activity::Overworld => overworld::update(state, engine)
|
|
|
|
}
|
2024-07-05 21:16:53 +00:00
|
|
|
}
|
2024-07-05 21:10:25 +00:00
|
|
|
|
2024-07-06 11:33:58 +00:00
|
|
|
pub fn draw(state: &State, engine: &EngineContext) {
|
|
|
|
match state.activity {
|
|
|
|
Activity::House => house::draw(state, engine),
|
|
|
|
Activity::Overworld => overworld::draw(state, engine)
|
|
|
|
}
|
2024-07-05 21:10:25 +00:00
|
|
|
}
|