pub struct EFLine { /* private fields */ }Expand description
Entity Formation line for unit positioning and actions.
EF Lines define where units should form up for specific actions like firing,
boarding, defending, or spawning. Different types serve different purposes.
See EFLineType for available types and their uses.
§Fields
name- Name identifier for this lineaction- Type of action/formation for this linestart- Starting point of the lineend- Ending point of the linedirection- Direction vector for unit orientationparent_index- Parent index for hierarchical relationships
§Examples
ⓘ
for ef_line in destruct.ef_lines() {
println!("EF Line '{}': {:?}", ef_line.name(), ef_line.action());
}Implementations§
Source§impl EFLine
impl EFLine
Sourcepub fn action(&self) -> &EFLineType
pub fn action(&self) -> &EFLineType
Type of action/formation for this line.
Sourcepub fn parent_index(&self) -> &u32
pub fn parent_index(&self) -> &u32
Parent index for hierarchical relationships.
Source§impl EFLine
impl EFLine
Sourcepub fn action_mut(&mut self) -> &mut EFLineType
pub fn action_mut(&mut self) -> &mut EFLineType
Type of action/formation for this line.
Sourcepub fn direction_mut(&mut self) -> &mut Point3d
pub fn direction_mut(&mut self) -> &mut Point3d
Direction vector for unit orientation.
Sourcepub fn parent_index_mut(&mut self) -> &mut u32
pub fn parent_index_mut(&mut self) -> &mut u32
Parent index for hierarchical relationships.
Source§impl EFLine
impl EFLine
Sourcepub fn set_action(&mut self, val: EFLineType) -> &mut Self
pub fn set_action(&mut self, val: EFLineType) -> &mut Self
Type of action/formation for this line.
Sourcepub fn set_direction(&mut self, val: Point3d) -> &mut Self
pub fn set_direction(&mut self, val: Point3d) -> &mut Self
Direction vector for unit orientation.
Sourcepub fn set_parent_index(&mut self, val: u32) -> &mut Self
pub fn set_parent_index(&mut self, val: u32) -> &mut Self
Parent index for hierarchical relationships.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EFLine
impl<'de> Deserialize<'de> for EFLine
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
impl StructuralPartialEq for EFLine
Auto Trait Implementations§
impl Freeze for EFLine
impl RefUnwindSafe for EFLine
impl Send for EFLine
impl Sync for EFLine
impl Unpin for EFLine
impl UnsafeUnpin for EFLine
impl UnwindSafe for EFLine
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.