pub struct ActionProcessContext {
pub game_props: HashMap<String, String>,
pub frontend: FrontendType,
pub ctx: RawContext,
pub action: ActionText,
}Expand description
The argument to action plugin.
Every action plugin should implement process_action:
ⓘ
use ayaka_bindings::*;
#[export]
fn process_action(mut ctx: ActionProcessContext) -> ActionProcessResult {
// Process the action...
ActionProcessResult { action: ctx.action }
}Fields§
§game_props: HashMap<String, String>The global properties of the game profile.
frontend: FrontendTypeThe frontend type.
ctx: RawContextThe current context.
action: ActionTextThe current action.
Trait Implementations§
source§impl Debug for ActionProcessContext
impl Debug for ActionProcessContext
source§impl<'de> Deserialize<'de> for ActionProcessContext
impl<'de> Deserialize<'de> for ActionProcessContext
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more