[−][src]Enum genie_dat::UnitType
Variants
Base(Box<BaseUnitType>)
The base unit type, for units that do not do anything.
Tree(Box<TreeUnitType>)
The tree unit type.
Animated(Box<AnimatedUnitType>)
Unit type that supports animated sprites.
Doppleganger(Box<DopplegangerUnitType>)
Unit type for the "fake" units you see in the fog of war, after the actual unit has been destroyed.
Moving(Box<MovingUnitType>)
Unit type that supports movement.
Action(Box<ActionUnitType>)
Unit type that supports being tasked by a player.
BaseCombat(Box<BaseCombatUnitType>)
Unit type that supports combat.
Missile(Box<MissileUnitType>)
Unit type for projectiles/missiles/arrows.
Combat(Box<CombatUnitType>)
Unit type that supports combat (with additional Age of Empires specific data).
Building(Box<BuildingUnitType>)
Unit type for buildings.
Implementations
impl UnitType
[src]
pub fn read_from(input: impl Read, version: f32) -> Result<Self>
[src]
Read a unit type from an input stream.
pub fn write_to(&self, output: impl Write, version: f32) -> Result<()>
[src]
Write this unit type to an output stream.
pub fn base(&self) -> &BaseUnitType
[src]
Get the base unit type properties for this unit.
pub fn animated(&self) -> Option<&AnimatedUnitType>
[src]
Get the animated unit type properties for this unit.
pub fn moving(&self) -> Option<&MovingUnitType>
[src]
Get the moving unit type properties for this unit.
pub fn action(&self) -> Option<&ActionUnitType>
[src]
Get the action unit type properties for this unit.
Trait Implementations
impl Clone for UnitType
[src]
impl Debug for UnitType
[src]
impl From<ActionUnitType> for UnitType
[src]
fn from(v: ActionUnitType) -> Self
[src]
impl From<AnimatedUnitType> for UnitType
[src]
fn from(v: AnimatedUnitType) -> Self
[src]
impl From<BaseCombatUnitType> for UnitType
[src]
fn from(v: BaseCombatUnitType) -> Self
[src]
impl From<BaseUnitType> for UnitType
[src]
fn from(v: BaseUnitType) -> Self
[src]
impl From<BuildingUnitType> for UnitType
[src]
fn from(v: BuildingUnitType) -> Self
[src]
impl From<CombatUnitType> for UnitType
[src]
fn from(v: CombatUnitType) -> Self
[src]
impl From<DopplegangerUnitType> for UnitType
[src]
fn from(v: DopplegangerUnitType) -> Self
[src]
impl From<MissileUnitType> for UnitType
[src]
fn from(v: MissileUnitType) -> Self
[src]
impl From<MovingUnitType> for UnitType
[src]
fn from(v: MovingUnitType) -> Self
[src]
impl From<TreeUnitType> for UnitType
[src]
fn from(v: TreeUnitType) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,