JaneDoe-ZS/nap_data/src/action/open_ui.rs
xeon 970dde020a Working OpenUI interacts and Archive battles
Implement OpenUI interacts (currently configs only for Yorozuya and Archive)
Fully working Archive (battles and cutscenes)
2024-07-30 03:04:55 +03:00

19 lines
432 B
Rust

use serde::Deserialize;
#[derive(Deserialize, Debug)]
pub struct ConfigOpenUi {
pub ui: String,
pub args: i32,
pub store_template_id: i32,
}
impl ConfigOpenUi {
pub fn to_protocol(&self) -> ::proto::ActionOpenUi {
::proto::ActionOpenUi {
ui: self.ui.clone(),
args: self.args,
store_template_id: self.store_template_id,
..Default::default()
}
}
}