Add server for game data (implement login sequence)

This commit is contained in:
NGnius (Graham) committed 2025-02-12 18:46:27 -05:00
1 parent ca4a0ce675
commit d8885d811f
52 files changed
+2734 -5

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
use polariton_server::operations::{Operation, OperationCode};
pub struct EacChallengeIgnorer;
impl Operation for EacChallengeIgnorer {
type State = ();
type User = crate::UserTy;
fn handle(&self, params: polariton::operation::ParameterTable, _: &mut Self::State, _: &Self::User) -> polariton::operation::OperationResponse {
polariton::operation::OperationResponse {
code: 161, // skip the challenge (hopefully)
return_code: 0,
message: polariton::operation::Typed::Null,
params,
}
}
}
impl OperationCode for EacChallengeIgnorer {
fn op_code() -> u8 {
160
}
}