pub struct CrowdMember {
pub x: f32,
pub y: f32,
pub scale_x: f32,
pub scale_y: f32,
pub rotation: f32,
pub alpha: f32,
pub tint: u32,
}Expand description
One of the copies SSPlayer::set_crowd draws: where it stands, and how it
is faded and tinted, each on top of the player’s own.
The placement is in SSPlayer::set_transform’s terms and is composed under
it, so the player’s own transform moves the whole crowd. The default stands
where the player does, unfaded and untinted.
Fields§
§x: f32Horizontal position, in the same terms as set_transform’s.
y: f32Measured downward, as set_transform’s is.
scale_x: f32Horizontal scale; negative mirrors.
scale_y: f32Vertical scale; negative mirrors.
rotation: f32Radians.
alpha: f32Multiplied into the player’s alpha, part by part; clamped to 0..=1.
tint: u320xRRGGBB, multiplied into the player’s tint.
Trait Implementations§
Source§impl Clone for CrowdMember
impl Clone for CrowdMember
impl Copy for CrowdMember
Source§impl Debug for CrowdMember
impl Debug for CrowdMember
Source§impl Default for CrowdMember
impl Default for CrowdMember
Source§impl PartialEq for CrowdMember
impl PartialEq for CrowdMember
impl StructuralPartialEq for CrowdMember
Auto Trait Implementations§
impl Freeze for CrowdMember
impl RefUnwindSafe for CrowdMember
impl Send for CrowdMember
impl Sync for CrowdMember
impl Unpin for CrowdMember
impl UnsafeUnpin for CrowdMember
impl UnwindSafe for CrowdMember
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