pub enum OPointKind {
Spawn = 1,
HoldLightWeapon = 2,
}Expand description
Object spawning variants.
See https://lf-empire.de/lf2-empire/data-changing/frame-elements/178-opoint-object-point
Variants§
Spawn = 1
Spawns an object on the same team.
Note that when spawning type: 0 objects (characters), ID 5 (Rudolf) and ID 52 (Julian) are spawned with 10 HP, and all other IDs are spawned with 500 HP.
HoldLightWeapon = 2
Object is spawned and held as a light weapon.
Ensure the spawned object has WPoint kind: 2 in its spawned frame.
Trait Implementations§
Source§impl Clone for OPointKind
impl Clone for OPointKind
Source§fn clone(&self) -> OPointKind
fn clone(&self) -> OPointKind
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 OPointKind
impl Debug for OPointKind
Source§impl Default for OPointKind
impl Default for OPointKind
Source§impl FromStr for OPointKind
impl FromStr for OPointKind
Source§type Err = OPointKindParseError
type Err = OPointKindParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<OPointKind, OPointKindParseError>
fn from_str(s: &str) -> Result<OPointKind, OPointKindParseError>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for OPointKind
impl PartialEq for OPointKind
impl Copy for OPointKind
impl Eq for OPointKind
impl StructuralPartialEq for OPointKind
Auto Trait Implementations§
impl Freeze for OPointKind
impl RefUnwindSafe for OPointKind
impl Send for OPointKind
impl Sync for OPointKind
impl Unpin for OPointKind
impl UnwindSafe for OPointKind
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