pub struct ActorScript {
pub header_index: usize,
pub instances: u16,
pub instance_variables: Vec<Vec<i32>>,
pub bytecode: Vec<u8>,
pub script_length: i32,
pub script_data_offset: i32,
pub script_pc: i32,
pub num_strings: i32,
pub num_variables: i32,
pub strings: Vec<String>,
pub variables: Vec<i32>,
pub instructions: Vec<ScriptInstruction>,
}Fields§
§header_index: usizeIndex in authored RAHD order; names are not instance identifiers.
instances: u16§instance_variables: Vec<Vec<i32>>Separate authored RAVA slices in instance allocation order.
bytecode: Vec<u8>The exact actor-local RASC slice. Empty when the stored slice is invalid.
script_length: i32§script_data_offset: i32§script_pc: i32§num_strings: i32§num_variables: i32§strings: Vec<String>§variables: Vec<i32>§instructions: Vec<ScriptInstruction>Trait Implementations§
Source§impl Clone for ActorScript
impl Clone for ActorScript
Auto Trait Implementations§
impl Freeze for ActorScript
impl RefUnwindSafe for ActorScript
impl Send for ActorScript
impl Sync for ActorScript
impl Unpin for ActorScript
impl UnsafeUnpin for ActorScript
impl UnwindSafe for ActorScript
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.