Add social server and implement all op codes up until chat room connection blocks further requests

This commit is contained in:
NGnius (Graham) committed 2025-02-23 16:10:21 -05:00
1 parent d8885d811f
commit 2907376722
76 files changed
+3052 -7

No files matched your search

@@ -0,0 +1,12 @@
use polariton_server::operations::SimpleFunc;
use polariton::operation::{ParameterTable, Typed};
const PARAM_KEY: u8 = 2;
pub(super) fn dev_message_provider() -> SimpleFunc<8, crate::UserTy, impl (Fn(ParameterTable, &crate::UserTy) -> Result<ParameterTable, i16>) + Sync + Sync> {
SimpleFunc::new(|params, _| {
let mut params = params.to_dict();
params.insert(PARAM_KEY, Typed::Bytes(Vec::from("No jam was harmed in the reverse-engineering of this game".as_bytes()).into()));
Ok(params.into())
})
}