Struct ayaka_bindings_types::GameProcessContext
source · pub struct GameProcessContext {
pub title: String,
pub author: String,
pub props: HashMap<String, String>,
}Expand description
The argument to game plugin.
Every game plugin should implement process_game:
ⓘ
use ayaka_bindings::*;
#[export]
fn process_game(mut ctx: GameProcessContext) -> GameProcessResult {
// Process the game...
GameProcessResult { props: ctx.props }
}Fields§
§title: StringThe title of the game.
The author of the game.
props: HashMap<String, String>The global properties of the game.
Trait Implementations§
source§impl Debug for GameProcessContext
impl Debug for GameProcessContext
source§impl<'de> Deserialize<'de> for GameProcessContext
impl<'de> Deserialize<'de> for GameProcessContext
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