pub struct AttributeCost {
pub attribute_type: i16,
pub amount: i16,
pub flag: u8,
}
Expand description
Resource cost for a unit.
Fields§
§attribute_type: i16
The player attribute type to give/take.
amount: i16
The amount of that attribute that should be taken/given.
flag: u8
Flag determining how and when this cost is counted.
TODO make this an enum
Implementations§
Trait Implementations§
Source§impl Clone for AttributeCost
impl Clone for AttributeCost
Source§fn clone(&self) -> AttributeCost
fn clone(&self) -> AttributeCost
Returns a duplicate of the value. Read more
1.0.0 · 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 AttributeCost
impl Debug for AttributeCost
Source§impl Default for AttributeCost
impl Default for AttributeCost
Source§fn default() -> AttributeCost
fn default() -> AttributeCost
Returns the “default value” for a type. Read more
impl Copy for AttributeCost
Auto Trait Implementations§
impl Freeze for AttributeCost
impl RefUnwindSafe for AttributeCost
impl Send for AttributeCost
impl Sync for AttributeCost
impl Unpin for AttributeCost
impl UnwindSafe for AttributeCost
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