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
Auto Trait Implementations§
impl Freeze for ActionProcessContext
impl RefUnwindSafe for ActionProcessContext
impl Send for ActionProcessContext
impl Sync for ActionProcessContext
impl Unpin for ActionProcessContext
impl UnwindSafe for ActionProcessContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more