pub struct Engine {
pub pos: Point<f64>,
pub parts: Vec<Part>,
}
Expand description
A instance of a siege engine.
Fields§
§pos: Point<f64>
§parts: Vec<Part>
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn new(x: f64, y: f64) -> Self
pub fn new(x: f64, y: f64) -> Self
Place a empty siege engine at the given position with no parts.
Sourcepub fn render_to_buffer(&self, dst: &mut [u32], dst_width: usize)
pub fn render_to_buffer(&self, dst: &mut [u32], dst_width: usize)
Render the graphics of the siege engine to a buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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