#[repr(u32)]pub enum ParameterKind {
GameControlled = 0,
AutomaticDistance = 1,
AutomaticEventConeAngle = 2,
AutomaticEventOrientation = 3,
AutomaticDirection = 4,
AutomaticElevation = 5,
AutomaticListenerOrientation = 6,
AutomaticSpeed = 7,
AutomaticSpeedAbsolute = 8,
AutomaticDistanceNormalized = 9,
}
studio
only.Expand description
Event parameter types.
Variants§
GameControlled = 0
API settable parameter.
AutomaticDistance = 1
Distance between the event and the listener.
AutomaticEventConeAngle = 2
Angle between the event’s forward vector and the vector pointing from the event to the listener (0 to 180 degrees).
AutomaticEventOrientation = 3
Horizontal angle between the event’s forward vector and listener’s forward vector (-180 to 180 degrees).
AutomaticDirection = 4
Horizontal angle between the listener’s forward vector and the vector pointing from the listener to the event (-180 to 180 degrees).
AutomaticElevation = 5
Angle between the listener’s XZ plane and the vector pointing from the listener to the event (-90 to 90 degrees).
AutomaticListenerOrientation = 6
Horizontal angle between the listener’s forward vector and the global positive Z axis (-180 to 180 degrees).
AutomaticSpeed = 7
Magnitude of the relative velocity of the event and the listener.
AutomaticSpeedAbsolute = 8
Magnitude of the absolute velocity of the event.
AutomaticDistanceNormalized = 9
Distance between the event and the listener in the range min distance - max distance represented as 0 - 1.
Trait Implementations§
Source§impl Clone for ParameterKind
impl Clone for ParameterKind
Source§fn clone(&self) -> ParameterKind
fn clone(&self) -> ParameterKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ParameterKind
impl Debug for ParameterKind
Source§impl From<ParameterKind> for u32
impl From<ParameterKind> for u32
Source§fn from(enum_value: ParameterKind) -> Self
fn from(enum_value: ParameterKind) -> Self
Source§impl PartialEq for ParameterKind
impl PartialEq for ParameterKind
Source§impl TryFrom<u32> for ParameterKind
impl TryFrom<u32> for ParameterKind
Source§type Error = TryFromPrimitiveError<ParameterKind>
type Error = TryFromPrimitiveError<ParameterKind>
Source§impl TryFromPrimitive for ParameterKind
impl TryFromPrimitive for ParameterKind
const NAME: &'static str = "ParameterKind"
type Primitive = u32
type Error = TryFromPrimitiveError<ParameterKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for ParameterKind
impl UnsafeFromPrimitive for ParameterKind
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
unchecked_transmute_from
, from_unchecked
will be removed in a future release.