pub struct BulletOutput {
pub offset: Vec2,
pub rotation: f32,
pub opacity: f32,
pub scale_x: f32,
pub scale_y: f32,
}Expand description
Output from a danmaku on-update call, mirrors the WIT bullet-output record.
弹幕 on-update 调用的输出,对应 WIT 中的 bullet-output 记录。
Fields§
§offset: Vec2§rotation: f32§opacity: f32Opacity override. Negative means no change.
scale_x: f32Scale delta (0.0 = no change from base scale).
scale_y: f32Implementations§
Trait Implementations§
Source§impl Clone for BulletOutput
impl Clone for BulletOutput
Source§fn clone(&self) -> BulletOutput
fn clone(&self) -> BulletOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BulletOutput
impl Debug for BulletOutput
Source§impl Default for BulletOutput
impl Default for BulletOutput
Source§fn default() -> BulletOutput
fn default() -> BulletOutput
Returns the “default value” for a type. Read more
impl Copy for BulletOutput
Auto Trait Implementations§
impl Freeze for BulletOutput
impl RefUnwindSafe for BulletOutput
impl Send for BulletOutput
impl Sync for BulletOutput
impl Unpin for BulletOutput
impl UnsafeUnpin for BulletOutput
impl UnwindSafe for BulletOutput
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