pub struct MapEditorStats {
pub total_tiles_placed: u64,
pub total_tiles_erased: u64,
pub undo_operations: u32,
pub redo_operations: u32,
pub layers_created: u32,
pub objects_placed: u32,
pub rooms_generated: u32,
pub maps_saved: u32,
pub maps_loaded: u32,
pub session_start: String,
pub editing_time_secs: f64,
}Fields§
§total_tiles_placed: u64§total_tiles_erased: u64§undo_operations: u32§redo_operations: u32§layers_created: u32§objects_placed: u32§rooms_generated: u32§maps_saved: u32§maps_loaded: u32§session_start: String§editing_time_secs: f64Implementations§
Source§impl MapEditorStats
impl MapEditorStats
pub fn new() -> Self
pub fn record_tile_place(&mut self, count: u64)
pub fn record_tile_erase(&mut self, count: u64)
pub fn advance_time(&mut self, dt: f64)
pub fn net_tiles(&self) -> i64
pub fn tiles_per_minute(&self) -> f64
pub fn summary(&self) -> String
Auto Trait Implementations§
impl Freeze for MapEditorStats
impl RefUnwindSafe for MapEditorStats
impl Send for MapEditorStats
impl Sync for MapEditorStats
impl Unpin for MapEditorStats
impl UnsafeUnpin for MapEditorStats
impl UnwindSafe for MapEditorStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.