Class SoundEvent
- Namespace
- TaleWorlds.Engine
- Assembly
- TaleWorlds.Engine.dll
public class SoundEvent
- Inheritance
-
SoundEvent
- Inherited Members
Properties
IsValid
public bool IsValid { get; }
Property Value
Methods
CreateEvent(int, Scene)
public static SoundEvent CreateEvent(int soundCodeId, Scene scene)
Parameters
Returns
CreateEventFromExternalFile(string, string, Scene)
public static SoundEvent CreateEventFromExternalFile(string programmerEventName, string soundFilePath, Scene scene)
Parameters
Returns
CreateEventFromSoundBuffer(string, byte[], Scene)
public static SoundEvent CreateEventFromSoundBuffer(string eventId, byte[] soundData, Scene scene)
Parameters
Returns
CreateEventFromString(string, Scene)
public static SoundEvent CreateEventFromString(string eventId, Scene scene)
Parameters
Returns
GetEventIdFromString(string)
public static int GetEventIdFromString(string name)
Parameters
namestring
Returns
GetEventMinMaxDistance()
public Vec3 GetEventMinMaxDistance()
Returns
GetSoundId()
public int GetSoundId()
Returns
GetTotalEventCount()
public static int GetTotalEventCount()
Returns
IsNullSoundEvent()
public bool IsNullSoundEvent()
Returns
IsPaused()
public bool IsPaused()
Returns
IsPlaying()
public bool IsPlaying()
Returns
Pause()
public void Pause()
Play()
public bool Play()
Returns
PlayExtraEvent(string)
public void PlayExtraEvent(string eventName)
Parameters
eventNamestring
PlayInPosition(Vec3)
public bool PlayInPosition(Vec3 position)
Parameters
positionVec3
Returns
PlaySound2D(int)
public static bool PlaySound2D(int soundCodeId)
Parameters
soundCodeIdint
Returns
PlaySound2D(string)
public static bool PlaySound2D(string soundName)
Parameters
soundNamestring
Returns
Release()
public void Release()
Resume()
public void Resume()
SetEventMinMaxDistance(Vec3)
public void SetEventMinMaxDistance(Vec3 newRadius)
Parameters
newRadiusVec3
SetParameter(int, float)
public void SetParameter(int parameterIndex, float value)
Parameters
SetParameter(string, float)
public void SetParameter(string parameterName, float value)
Parameters
SetPosition(Vec3)
public void SetPosition(Vec3 vec)
Parameters
vecVec3
SetSwitch(string, string)
public void SetSwitch(string switchGroupName, string newSwitchStateName)
Parameters
SetVelocity(Vec3)
public void SetVelocity(Vec3 vec)
Parameters
vecVec3
Stop()
public void Stop()
TriggerCue()
public void TriggerCue()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).