Struct ayaka_bindings_types::LineProcessContext
source · 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