pub struct TimedChannelHud {
pub label: String,
pub channel: TimedChannelKind,
pub cell_x: i32,
pub cell_y: i32,
pub x0: f32,
pub y0: f32,
pub x1: f32,
pub y1: f32,
pub ticks_remaining: u64,
pub ticks_total: u64,
}Expand description
Local-player timed action (till, plant, …) — same progress shape as CastProgressHud.
Fields§
§label: String§channel: TimedChannelKind§cell_x: i32§cell_y: i32§x0: f32Optional world AABB for multi-cell channels (plot build pad). Zero = unused.
y0: f32§x1: f32§y1: f32§ticks_remaining: u64§ticks_total: u64Implementations§
Source§impl TimedChannelHud
impl TimedChannelHud
Sourcepub fn has_footprint(&self) -> bool
pub fn has_footprint(&self) -> bool
True when this channel carries a drawable footprint AABB.
Trait Implementations§
Source§impl Clone for TimedChannelHud
impl Clone for TimedChannelHud
Source§fn clone(&self) -> TimedChannelHud
fn clone(&self) -> TimedChannelHud
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimedChannelHud
impl Debug for TimedChannelHud
Source§impl Default for TimedChannelHud
impl Default for TimedChannelHud
Source§fn default() -> TimedChannelHud
fn default() -> TimedChannelHud
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimedChannelHud
impl<'de> Deserialize<'de> for TimedChannelHud
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimedChannelHud
impl PartialEq for TimedChannelHud
Source§impl Serialize for TimedChannelHud
impl Serialize for TimedChannelHud
impl StructuralPartialEq for TimedChannelHud
Auto Trait Implementations§
impl Freeze for TimedChannelHud
impl RefUnwindSafe for TimedChannelHud
impl Send for TimedChannelHud
impl Sync for TimedChannelHud
impl Unpin for TimedChannelHud
impl UnsafeUnpin for TimedChannelHud
impl UnwindSafe for TimedChannelHud
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