pub struct LineProcessContext {
pub game_props: HashMap<String, String>,
pub frontend: FrontendType,
pub ctx: RawContext,
pub props: VarMap,
}Expand description
The argument to line plugin.
ⓘ
use ayaka_bindings::*;
#[export]
fn plugin_type() -> PluginType {
PluginType::builder().line(&["hello"]).build()
}
#[export]
fn hello(_ctx: LineProcessContext) -> LineProcessResult {
let mut res = LineProcessResult::default();
res.locals.insert("hello".to_string(), RawValue::Str("world".to_string()));
res
}Fields§
§game_props: HashMap<String, String>The global properties of the game profile.
frontend: FrontendTypeThe frontend type.
ctx: RawContextThe current context.
props: VarMapThe full properties of the custom command.
Trait Implementations§
Source§impl Debug for LineProcessContext
impl Debug for LineProcessContext
Source§impl<'de> Deserialize<'de> for LineProcessContext
impl<'de> Deserialize<'de> for LineProcessContext
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 LineProcessContext
impl RefUnwindSafe for LineProcessContext
impl Send for LineProcessContext
impl Sync for LineProcessContext
impl Unpin for LineProcessContext
impl UnwindSafe for LineProcessContext
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