pub struct PlaydateExporter;Expand description
The Playdate exporter’s type.
Trait Implementations§
Source§impl Exporter for PlaydateExporter
impl Exporter for PlaydateExporter
Source§fn prepare(
&self,
cx: &ExportCx,
project: &Project,
game: Option<&dyn GameTools>,
) -> Result<(), ExportError>
fn prepare( &self, cx: &ExportCx, project: &Project, game: Option<&dyn GameTools>, ) -> Result<(), ExportError>
Bakes the game’s pack for the target with its tools.
Source§fn shipped(&self, cx: &ExportCx, report: &ExportReport) -> Shipped
fn shipped(&self, cx: &ExportCx, report: &ExportReport) -> Shipped
What pdc makes of what is written here: the programs, pdxinfo, the
launcher’s images, the notices and the pack; the sounds and music it
bakes from the game’s tools; and pdex.elf, read in place of the
pdex.bin that may be compressed.
Source§fn run(&self, cx: &RunCx<'_>) -> Result<(), ExportError>
fn run(&self, cx: &RunCx<'_>) -> Result<(), ExportError>
Opens the .pdx in the SDK’s Simulator, and waits for it to close.
What the game logs shows in the Simulator’s own console: on Windows
the program gives its caller nothing.
Source§fn profile(&self) -> &'static str
fn profile(&self) -> &'static str
The target profile its check runs with (
targets/<profile>.ron).Source§fn builds_a_program(&self) -> bool
fn builds_a_program(&self) -> bool
Whether it packages a program of the game’s package; otherwise it
builds the package’s library, and the package needs no
[[bin]].Source§fn takes_export_part(&self) -> bool
fn takes_export_part(&self) -> bool
Whether
shuyi.ron’s export part applies to it.Source§fn cargo_args(&self, cx: &ExportCx) -> Vec<Vec<String>>
fn cargo_args(&self, cx: &ExportCx) -> Vec<Vec<String>>
The
cargo arguments of each build it runs.Source§fn export(&self, cx: &ExportCx) -> Result<ExportReport, ExportError>
fn export(&self, cx: &ExportCx) -> Result<ExportReport, ExportError>
Builds and writes the package into
cx.out.Auto Trait Implementations§
impl Freeze for PlaydateExporter
impl RefUnwindSafe for PlaydateExporter
impl Send for PlaydateExporter
impl Sync for PlaydateExporter
impl Unpin for PlaydateExporter
impl UnsafeUnpin for PlaydateExporter
impl UnwindSafe for PlaydateExporter
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