Large update across server and web clients: regenerated/added many spacetime-client module bindings and input types (including new delete/work_delete input types and numerous procedure/reducer files), updates to server-rs API modules (bark_battle, jump_hop, wooden_fish, auth, module-runtime and shared contracts), and fixes in module-runtime behavior and domain logic. Frontend changes include new/updated components and tests (creative audio helpers, bark-battle/jump-hop/wooden-fish clients and views, unified generation pages, RPG entry views, and runtime shells), plus CSS and service updates. Documentation and operational notes updated (.hermes pitfalls and multiple PRD/docs) to cover daily-task refresh, banner asset fallback, recommend-key bug, and other platform behaviors. Tests and verification steps added/updated alongside these changes.
73 lines
2.5 KiB
Rust
73 lines
2.5 KiB
Rust
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
|
|
|
#![allow(unused, clippy::all)]
|
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
|
|
use super::quest_record_input_type::QuestRecordInput;
|
|
|
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
|
#[sats(crate = __lib)]
|
|
pub(super) struct AcceptQuestArgs {
|
|
pub input: QuestRecordInput,
|
|
}
|
|
|
|
impl From<AcceptQuestArgs> for super::Reducer {
|
|
fn from(args: AcceptQuestArgs) -> Self {
|
|
Self::AcceptQuest { input: args.input }
|
|
}
|
|
}
|
|
|
|
impl __sdk::InModule for AcceptQuestArgs {
|
|
type Module = super::RemoteModule;
|
|
}
|
|
|
|
#[allow(non_camel_case_types)]
|
|
/// Extension trait for access to the reducer `accept_quest`.
|
|
///
|
|
/// Implemented for [`super::RemoteReducers`].
|
|
pub trait accept_quest {
|
|
/// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible.
|
|
///
|
|
/// This method returns immediately, and errors only if we are unable to send the request.
|
|
/// The reducer will run asynchronously in the future,
|
|
/// and this method provides no way to listen for its completion status.
|
|
/// /// Use [`accept_quest:accept_quest_then`] to run a callback after the reducer completes.
|
|
fn accept_quest(&self, input: QuestRecordInput) -> __sdk::Result<()> {
|
|
self.accept_quest_then(input, |_, _| {})
|
|
}
|
|
|
|
/// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible,
|
|
/// registering `callback` to run when we are notified that the reducer completed.
|
|
///
|
|
/// This method returns immediately, and errors only if we are unable to send the request.
|
|
/// The reducer will run asynchronously in the future,
|
|
/// and its status can be observed with the `callback`.
|
|
fn accept_quest_then(
|
|
&self,
|
|
input: QuestRecordInput,
|
|
|
|
callback: impl FnOnce(
|
|
&super::ReducerEventContext,
|
|
Result<Result<(), String>, __sdk::InternalError>,
|
|
) + Send
|
|
+ 'static,
|
|
) -> __sdk::Result<()>;
|
|
}
|
|
|
|
impl accept_quest for super::RemoteReducers {
|
|
fn accept_quest_then(
|
|
&self,
|
|
input: QuestRecordInput,
|
|
|
|
callback: impl FnOnce(
|
|
&super::ReducerEventContext,
|
|
Result<Result<(), String>, __sdk::InternalError>,
|
|
) + Send
|
|
+ 'static,
|
|
) -> __sdk::Result<()> {
|
|
self.imp
|
|
.invoke_reducer_with_callback(AcceptQuestArgs { input }, callback)
|
|
}
|
|
}
|