pub enum S2sClass {
Script,
Dialogue {
start_page: String,
},
Msgbox {
title: String,
},
Unknown,
}Expand description
Classify a .s2s file based on how it’s referenced.
Returns what kind of data the file contains and how it should be converted.
Variants§
Script
Standard event-handler script (transpile s2s→lua)
Dialogue
Dialog page data (parse as dialogue, output Lua table)
Msgbox
Plain text displayed via msgbox (copy as .txt)
Unknown
Unknown — try s2s2lua, fall back to copy-as-is
Trait Implementations§
impl StructuralPartialEq for S2sClass
Auto Trait Implementations§
impl Freeze for S2sClass
impl RefUnwindSafe for S2sClass
impl Send for S2sClass
impl Sync for S2sClass
impl Unpin for S2sClass
impl UnsafeUnpin for S2sClass
impl UnwindSafe for S2sClass
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