Skip to main content

PlaydateExporter

Struct PlaydateExporter 

Source
pub struct PlaydateExporter;
Expand description

The Playdate exporter’s type.

Trait Implementations§

Source§

impl Exporter for PlaydateExporter

Source§

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

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>

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 id(&self) -> &'static str

The target’s id: shuyi export <id>.
Source§

fn profile(&self) -> &'static str

The target profile its check runs with (targets/<profile>.ron).
Source§

fn triples(&self) -> &'static [&'static str]

The Rust triples it builds for.
Source§

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

Whether shuyi.ron’s export part applies to it.
Source§

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>

Builds and writes the package into cx.out.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.