pub struct Driver<G: GameData, S: Sdk> { /* private fields */ }Expand description
A game on the Playdate: its App and the backend.
Implementations§
Source§impl<G: GameData, S: Sdk> Driver<G, S>
impl<G: GameData, S: Sdk> Driver<G, S>
Sourcepub fn with_report(start: Start<G>, sdk: S, report: RunReport) -> Self
pub fn with_report(start: Start<G>, sdk: S, report: RunReport) -> Self
The game start says on sdk, saying in the console how its start
went and how fast it runs, as report says (report).
Sourcepub fn event(&mut self, event: SdkEvent)
pub fn event(&mut self, event: SdkEvent)
The SDK’s event. What must be heard before the system stops the
updates runs a frame now: App lets the game save and steps nothing.
The player chose the system menu’s item in slot.
Auto Trait Implementations§
impl<G, S> !Freeze for Driver<G, S>
impl<G, S> !RefUnwindSafe for Driver<G, S>
impl<G, S> !Send for Driver<G, S>
impl<G, S> !Sync for Driver<G, S>
impl<G, S> !UnwindSafe for Driver<G, S>
impl<G, S> Unpin for Driver<G, S>
impl<G, S> UnsafeUnpin for Driver<G, S>
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