pub struct UnitTemplate {
pub name: String,
pub stats: UnitStats,
}Expand description
A unit template loaded from a RON file.
Templates are blueprints — they define what a unit IS. At spawn time, the template stamps its data into ECS components.
Fields§
§name: String§stats: UnitStatsTrait Implementations§
Source§impl Clone for UnitTemplate
impl Clone for UnitTemplate
Source§impl Debug for UnitTemplate
impl Debug for UnitTemplate
Source§impl<'de> Deserialize<'de> for UnitTemplate
impl<'de> Deserialize<'de> for UnitTemplate
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
Auto Trait Implementations§
impl Freeze for UnitTemplate
impl RefUnwindSafe for UnitTemplate
impl Send for UnitTemplate
impl Sync for UnitTemplate
impl Unpin for UnitTemplate
impl UnsafeUnpin for UnitTemplate
impl UnwindSafe for UnitTemplate
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