Skip to main content

TutorialPart

Enum TutorialPart 

Source
pub enum TutorialPart {
    Tutorial(Tutorial),
    Step(TutorialStep),
    SetupDialog {
        a: Vec<String>,
        b: Vec<String>,
        s40: String,
        r50: Option<String>,
        i48: i32,
        component: String,
        i70: i32,
    },
    SetupCamera([i32; 4]),
    SetupGameSpeed {
        speed: i32,
        b24: bool,
    },
    SetupRestrictPlayer {
        values: [i32; 5],
        s38: String,
        s50: String,
    },
    GoalButton {
        s20: String,
        b28: bool,
    },
    GoalCount {
        e20: i32,
        i24: i32,
        s30: String,
        b28: bool,
        s48: String,
    },
    GoalDialog {
        s20: String,
        component: String,
    },
    GoalGameSpeed(i32),
    Image {
        i28: i32,
        i2c: i32,
        r20: Option<String>,
        extra: ImageExtra,
    },
}
Expand description

One part of a tutorial: the tutorial itself, a step, or a set-up dialog.

Variants§

§

Tutorial(Tutorial)

The tutorial.

§

Step(TutorialStep)

A step.

§

SetupDialog

A set-up that limits the interface and points at an element.

Fields

§a: Vec<String>

The elements left usable.

§b: Vec<String>

More elements left usable.

§s40: String

The element to point at.

§r50: Option<String>

The highlight dialog.

§i48: i32

The angle of the pointer.

§component: String

A ComponentDescription.

§i70: i32

Not identified yet.

§

SetupCamera([i32; 4])

Moves the camera to two cells.

§

SetupGameSpeed

Sets the game speed.

Fields

§speed: i32

The speed.

§b24: bool

Whether it unpauses the game.

§

SetupRestrictPlayer

Limits what the player may place, and where.

Fields

§values: [i32; 5]

A rectangle of cells, then one more value.

§s38: String

The first template.

§s50: String

The second template.

§

GoalButton

An element was pressed.

Fields

§s20: String

The element’s path.

§b28: bool

Not identified yet.

§

GoalCount

A count reached a number.

Fields

§e20: i32

What is counted.

§i24: i32

The number.

§s30: String

The template.

§b28: bool

Whether the count must be at least the number (else exactly).

§s48: String

The spinner’s path, for kind 9.

§

GoalDialog

A dialog is open.

Fields

§s20: String

The dialog.

§component: String

The template of the entity it is open on.

§

GoalGameSpeed(i32)

The game speed is this value.

§

Image

A TutorialImage and its classes.

Fields

§i28: i32

The column.

§i2c: i32

The row.

§r20: Option<String>

The element.

§extra: ImageExtra

What the class adds.

Trait Implementations§

Source§

impl Clone for TutorialPart

Source§

fn clone(&self) -> TutorialPart

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TutorialPart

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TutorialPart

Source§

fn eq(&self, other: &TutorialPart) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TutorialPart

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.