pub enum Line {
FrameBulk(FrameBulk),
Save(String),
SharedSeed(u32),
Buttons(Buttons),
LGAGSTMinSpeed(f32),
Reset {
non_shared_seed: i64,
},
Comment(String),
VectorialStrafing(bool),
VectorialStrafingConstraints(VectorialStrafingConstraints),
Change(Change),
TargetYawOverride(Vec<f32>),
RenderYawOverride(Vec<f32>),
}
Expand description
A line in the frames section.
Variants§
FrameBulk(FrameBulk)
A frame bulk.
Save(String)
A save-load.
A line that sets the shared seed to use next load.
Buttons(Buttons)
Sets or resets the strafing buttons.
LGAGSTMinSpeed(f32)
Minimum speed for the optimal leave-ground-action speed.
Reset
Fields
The non-shared seed to use for this reset.
An engine reset.
Comment(String)
A comment line.
VectorialStrafing(bool)
Enables or disables vectorial strafing.
VectorialStrafingConstraints(VectorialStrafingConstraints)
Sets the constraints for vectorial strafing.
Change(Change)
Starts smoothly changing a value.
TargetYawOverride(Vec<f32>)
Overrides yaw and target yaw for the subsequent frames.
RenderYawOverride(Vec<f32>)
Overrides render yaw for the subsequent frames.
Implementations§
source§impl Line
impl Line
sourcepub fn frame_bulk(&self) -> Option<&FrameBulk>
pub fn frame_bulk(&self) -> Option<&FrameBulk>
Returns the &FrameBulk
that the &Line
contains.
Examples
use hltas::types::{FrameBulk, Line};
let frame_bulk = FrameBulk::with_frame_time("0.001".to_owned());
let frame_bulk_line = Line::FrameBulk(frame_bulk.clone());
assert_eq!(frame_bulk_line.frame_bulk(), Some(&frame_bulk));
let other_line = Line::SharedSeed(1);
assert_eq!(other_line.frame_bulk(), None);
sourcepub fn frame_bulk_mut(&mut self) -> Option<&mut FrameBulk>
pub fn frame_bulk_mut(&mut self) -> Option<&mut FrameBulk>
Returns the &mut FrameBulk
that the &mut Line
contains.
Examples
use hltas::types::{FrameBulk, Line};
let mut frame_bulk = FrameBulk::with_frame_time("0.001".to_owned());
let mut frame_bulk_line = Line::FrameBulk(frame_bulk.clone());
assert_eq!(frame_bulk_line.frame_bulk_mut(), Some(&mut frame_bulk));
let mut other_line = Line::SharedSeed(1);
assert_eq!(other_line.frame_bulk_mut(), None);
Trait Implementations§
source§impl PartialEq<Line> for Line
impl PartialEq<Line> for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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