pub struct Attribute {
pub key: Identifier,
pub translation_key: &'static str,
pub default_value: f64,
pub min_value: f64,
pub max_value: f64,
pub syncable: bool,
}Expand description
Vanilla entity attribute definition
Unlike vanilla’s separate Attribute / RangedAttribute hierarchy, we
fold min/max directly into the struct since every attribute is ranged
Fields§
§key: Identifier§translation_key: &'static str§default_value: f64§min_value: f64§max_value: f64§syncable: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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