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
name
string
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
eventName
string
PlayInPosition(Vec3)
public bool PlayInPosition(Vec3 position)
Parameters
position
Vec3
Returns
PlaySound2D(int)
public static bool PlaySound2D(int soundCodeId)
Parameters
soundCodeId
int
Returns
PlaySound2D(string)
public static bool PlaySound2D(string soundName)
Parameters
soundName
string
Returns
Release()
public void Release()
Resume()
public void Resume()
SetEventMinMaxDistance(Vec3)
public void SetEventMinMaxDistance(Vec3 newRadius)
Parameters
newRadius
Vec3
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
vec
Vec3
SetSwitch(string, string)
public void SetSwitch(string switchGroupName, string newSwitchStateName)
Parameters
SetVelocity(Vec3)
public void SetVelocity(Vec3 vec)
Parameters
vec
Vec3
Stop()
public void Stop()
TriggerCue()
public void TriggerCue()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).