Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Game plugin

Game plugins adjust some properties of the game before any record starts.

Insert a global property

use ayaka_bindings::*;

#[export]
fn plugin_type() -> PluginType {
    PluginType::builder().game().build()
}

#[export]
fn process_game(mut ctx: GameProcessContext) -> GameProcessResult {
    ctx.props.insert("hello".to_string(), "Hello world!".to_string());
    GameProcessResult { props: ctx.props }
}

Existing plugins

PluginDescription
live2dGet correct path of Live2D models.
mediaGet correct path of background image at home.