|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


类 | |
| class | Congestion |
| struct | SoundInfo |
Public 成员函数 | |
| float | CalculateListenerDistanceSquared (Vector3 p) |
| float | CalculateListenerDistance (Vector3 p) |
| void | Mute () |
| void | Unmute () |
| void | PlaySound (string name, float volume, float pitch, float pan, float delay) |
| void | PlaySound (string name, float volume, float pitch, float pan, float delay, Vector3 direction) |
| virtual void | PlaySound (string name, float volume, float pitch, Vector3 position, float minDistance, float delay) |
| virtual void | PlaySound (string name, float volume, float pitch, Vector3 position, float minDistance, bool autoDelay) |
| void | PlayRandomSound (string directory, float volume, float pitch, float pan, float delay) |
| virtual void | PlayRandomSound (string directory, float volume, float pitch, Vector3 position, float minDistance, float delay) |
| virtual void | PlayRandomSound (string directory, float volume, float pitch, Vector3 position, float minDistance, bool autoDelay) |
| Sound | CreateSound (string name) |
| float | CalculateVolume (float distance, float minDistance, float rolloffFactor=2f) |
| float | CalculateDelay (Vector3 position) |
| float | CalculateDelay (float distance) |
| virtual void | Update (float dt) |
| override void | Load (ValuesDictionary valuesDictionary) |
| override void | Dispose () |
| bool | UpdateCongestion (string name, float volume) |
| Public 成员函数 继承自 GameEntitySystem.Subsystem | |
| virtual void | OnEntityAdded (Entity entity) |
| virtual void | OnEntityRemoved (Entity entity) |
| virtual void | Save (ValuesDictionary valuesDictionary) |
| virtual void | Initialize (Project project, ValuesDictionary valuesDictionary) |
Public 属性 | |
| SubsystemTime | m_subsystemTime |
| SubsystemGameWidgets | m_subsystemViews |
| Random | m_random = new() |
| List< Vector3 > | m_listenerPositions = [] |
| Dictionary< string, Congestion > | m_congestions = [] |
| double | m_nextSoundTime |
| List< SoundInfo > | m_queuedSounds = [] |
| List< Sound > | m_sounds = [] |
| Dictionary< Sound, bool > | m_mutedSounds = [] |
属性 | |
| ReadOnlyList< Vector3 > | ListenerPositions [get] |
| UpdateOrder | UpdateOrder [get] |
| 属性 继承自 GameEntitySystem.Subsystem | |
| Project | Project [get] |
| ValuesDictionary | ValuesDictionary [get] |
| 属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
额外继承的成员函数 | |
| 包函数 继承自 GameEntitySystem.Subsystem | |
| void | DisposeInternal () |
在文件 SubsystemAudio.cs 第 8 行定义.
| float Game.SubsystemAudio.CalculateDelay | ( | float | distance | ) |
在文件 SubsystemAudio.cs 第 141 行定义.
| float Game.SubsystemAudio.CalculateDelay | ( | Vector3 | position | ) |
| float Game.SubsystemAudio.CalculateListenerDistance | ( | Vector3 | p | ) |
| float Game.SubsystemAudio.CalculateListenerDistanceSquared | ( | Vector3 | p | ) |
| float Game.SubsystemAudio.CalculateVolume | ( | float | distance, |
| float | minDistance, | ||
| float | rolloffFactor = 2f ) |
| Sound Game.SubsystemAudio.CreateSound | ( | string | name | ) |
|
virtual |
|
virtual |
重载 GameEntitySystem.Subsystem .
在文件 SubsystemAudio.cs 第 171 行定义.
| void Game.SubsystemAudio.Mute | ( | ) |
| void Game.SubsystemAudio.PlayRandomSound | ( | string | directory, |
| float | volume, | ||
| float | pitch, | ||
| float | pan, | ||
| float | delay ) |
|
virtual |
|
virtual |
| void Game.SubsystemAudio.PlaySound | ( | string | name, |
| float | volume, | ||
| float | pitch, | ||
| float | pan, | ||
| float | delay ) |
| void Game.SubsystemAudio.PlaySound | ( | string | name, |
| float | volume, | ||
| float | pitch, | ||
| float | pan, | ||
| float | delay, | ||
| Vector3 | direction ) |
在文件 SubsystemAudio.cs 第 92 行定义.
|
virtual |
|
virtual |
| void Game.SubsystemAudio.Unmute | ( | ) |
|
virtual |
| bool Game.SubsystemAudio.UpdateCongestion | ( | string | name, |
| float | volume ) |
| Dictionary<string, Congestion> Game.SubsystemAudio.m_congestions = [] |
在文件 SubsystemAudio.cs 第 43 行定义.
| List<Vector3> Game.SubsystemAudio.m_listenerPositions = [] |
在文件 SubsystemAudio.cs 第 41 行定义.
| Dictionary<Sound, bool> Game.SubsystemAudio.m_mutedSounds = [] |
在文件 SubsystemAudio.cs 第 51 行定义.
| double Game.SubsystemAudio.m_nextSoundTime |
在文件 SubsystemAudio.cs 第 45 行定义.
| List<SoundInfo> Game.SubsystemAudio.m_queuedSounds = [] |
在文件 SubsystemAudio.cs 第 47 行定义.
| Random Game.SubsystemAudio.m_random = new() |
在文件 SubsystemAudio.cs 第 39 行定义.
| List<Sound> Game.SubsystemAudio.m_sounds = [] |
在文件 SubsystemAudio.cs 第 49 行定义.
| SubsystemTime Game.SubsystemAudio.m_subsystemTime |
在文件 SubsystemAudio.cs 第 35 行定义.
| SubsystemGameWidgets Game.SubsystemAudio.m_subsystemViews |
在文件 SubsystemAudio.cs 第 37 行定义.
|
get |
在文件 SubsystemAudio.cs 第 53 行定义.
|
get |
实现了 Game.IUpdateable.
在文件 SubsystemAudio.cs 第 55 行定义.