pub struct ScriptInfo {
pub name: &'static str,
pub version: u16,
pub uint8x2: Section,
pub uint8str: Section,
pub string: Section,
pub encstr: Section,
pub uint16x4: Section,
pub optunenc: u8,
pub deckey: u8,
pub nameopcode: u8,
}
Available on crate feature
circus
only.Fields§
§name: &'static str
§version: u16
§uint8x2: Section
[op: byte] [arg1: uint8] [arg2: uint8]
uint8str: Section
[op: byte] [arg1: uint8] [arg2: string]
string: Section
[op: byte] [arg1: string]
encstr: Section
[op: byte] [arg1: encstr]
uint16x4: Section
[op: byte] [arg1: uint16] [arg2: uint16] [arg3: uint16] [arg4: uint16]
optunenc: u8
the opcode for unencrypted strings in scene text
deckey: u8
§nameopcode: u8
Implementations§
Source§impl ScriptInfo
impl ScriptInfo
pub const fn new( name: &'static str, version: u16, uint8x2: (u8, u8), uint8str: (u8, u8), string: (u8, u8), encstr: (u8, u8), uint16x4: (u8, u8), optunenc: u8, deckey: u8, nameopcode: u8, ) -> Self
pub fn query(name: &str) -> Option<&'static ScriptInfo>
pub fn query_by_version(version: u16) -> Option<&'static ScriptInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptInfo
impl RefUnwindSafe for ScriptInfo
impl Send for ScriptInfo
impl Sync for ScriptInfo
impl Unpin for ScriptInfo
impl UnwindSafe for ScriptInfo
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
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