Update to work with polariton v0.2

This commit is contained in:
NGnius (Graham) committed 2025-03-08 17:16:02 -05:00
1 parent f004ca8565
commit be37f8913a
83 files changed
+428 -1202

No files matched your search

@@ -1,5 +1,5 @@
use polariton_server::operations::SimpleFunc;
use polariton::operation::{ParameterTable, Typed, Arr};
use polariton::{operation::{Arr, ParameterTable, Typed}, serdes::TypePrefix};
const PARAM_KEY: u8 = 50;
@@ -7,7 +7,7 @@ pub(super) fn owned_cosmetics_provider() -> SimpleFunc<23, crate::UserTy, impl (
SimpleFunc::new(|params, _| {
let mut params = params.to_dict();
params.insert(PARAM_KEY, Typed::Arr(Arr {
ty: 115, // str
ty: TypePrefix::Str, // str
items: vec![Typed::Str("1".into())],
}));
Ok(params.into())
@@ -18,7 +18,7 @@ pub(super) fn selected_cosmetics_provider() -> SimpleFunc<21, crate::UserTy, imp
SimpleFunc::new(|params, _| {
let mut params = params.to_dict();
params.insert(PARAM_KEY, Typed::Arr(Arr {
ty: 115, // str
ty: TypePrefix::Str, // str
items: vec![Typed::Str("1".into())],
}));
Ok(params.into())