2025-03-15 11:03:35 -04:00
|
|
|
use polariton_server::operations::Immediate;
|
2025-06-03 21:09:03 -04:00
|
|
|
use oj_rc_core::ConfigProvider;
|
2025-02-23 16:10:21 -05:00
|
|
|
|
|
|
|
|
const PARAM_KEY: u8 = 210;
|
|
|
|
|
|
2025-06-03 21:09:03 -04:00
|
|
|
pub(super) fn tech_tree_layout_provider(cubes: &oj_rc_core::ConfigImpl) -> Immediate<183, crate::UserTy> {
|
2025-03-15 11:03:35 -04:00
|
|
|
Immediate::new(|| {
|
|
|
|
|
let mut params = std::collections::HashMap::with_capacity(2);
|
|
|
|
|
params.insert(PARAM_KEY, cubes.tech_tree_nodes(&vec![
|
|
|
|
|
227205318,
|
|
|
|
|
227917916,
|
|
|
|
|
1931676396,
|
|
|
|
|
].into_iter().collect()));
|
|
|
|
|
/*params.insert(PARAM_KEY, Typed::Dict(Dict {
|
2025-03-08 17:16:02 -05:00
|
|
|
key_ty: TypePrefix::Str, // str
|
|
|
|
|
val_ty: TypePrefix::HashMap, // hashmap
|
2025-02-23 16:10:21 -05:00
|
|
|
items: vec![
|
2025-02-25 22:26:53 -05:00
|
|
|
TechTreeNode {
|
|
|
|
|
main_cube_id: 227205318, // default cube id
|
2025-02-23 16:10:21 -05:00
|
|
|
position_x: 0,
|
|
|
|
|
position_y: 0,
|
|
|
|
|
is_unlocked: true,
|
2025-03-15 11:03:35 -04:00
|
|
|
is_unlockable: false,
|
2025-02-23 16:10:21 -05:00
|
|
|
tech_points: 1,
|
|
|
|
|
neighbours: Vec::default(),
|
2025-02-25 22:26:53 -05:00
|
|
|
}.as_transmissible_key_val(),
|
2025-02-23 16:10:21 -05:00
|
|
|
],
|
2025-03-15 11:03:35 -04:00
|
|
|
}));*/
|
|
|
|
|
params.into()
|
2025-02-23 16:10:21 -05:00
|
|
|
})
|
|
|
|
|
}
|