pub struct Message { /* private fields */ }Expand description
Representation of a user-sent chat message in a Company of Heroes 3 replay. Messages are
collected during command parsing and then associated with the Player instance that sent them.
To access, see Player::messages.
Implementations§
source§impl Message
impl Message
sourcepub fn tick(&self) -> u32
pub fn tick(&self) -> u32
This value is the tick at which the message was found while parsing the replay, which represents the time in the replay at which it was sent. Because CoH3’s engine runs at 8 ticks per second, you can divide this value by 8 to get the number of seconds since the replay began, which will tell you when this message was sent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)