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
Auto Trait Implementations§
impl Freeze for GameProcessContext
impl RefUnwindSafe for GameProcessContext
impl Send for GameProcessContext
impl Sync for GameProcessContext
impl Unpin for GameProcessContext
impl UnwindSafe for GameProcessContext
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