pub enum S2sRefType {
Dialogue {
start_page: String,
},
Msgbox {
title: String,
},
Button,
AddScript,
ExtendScript,
DefExtend,
DefOverride,
}Expand description
How another file references/loads a given .s2s file.
Variants§
Dialogue
dialogue "startpage", "path" — dialog page data
Msgbox
msgbox "Title", "path" — plain text displayed in a message box
Button
button id, "text", font, "path" — script executed on button click
AddScript
addscript class, id, "path" — event handler added to an entity
ExtendScript
extendscript class, id, "path" — global event handler extension
DefExtend
def_extend class, type_id, "path", "section" — type extension
DefOverride
def_override class, type_id, "path", "section" — type override
Trait Implementations§
Source§impl Clone for S2sRefType
impl Clone for S2sRefType
Source§fn clone(&self) -> S2sRefType
fn clone(&self) -> S2sRefType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for S2sRefType
impl Debug for S2sRefType
Source§impl PartialEq for S2sRefType
impl PartialEq for S2sRefType
impl StructuralPartialEq for S2sRefType
Auto Trait Implementations§
impl Freeze for S2sRefType
impl RefUnwindSafe for S2sRefType
impl Send for S2sRefType
impl Sync for S2sRefType
impl Unpin for S2sRefType
impl UnsafeUnpin for S2sRefType
impl UnwindSafe for S2sRefType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more