Class BuildingSoundManager
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class BuildingSoundManager : IBuildingSoundManager
- Inheritance
-
object
BuildingSoundManager
- Implements
-
- Extension Methods
-
Constructors
BuildingSoundManager(BuildingSoundSettings, ISoundPlayer, ISimulationSpeedReader, ISimulationsSpeedsOverseer, ILogger)
public BuildingSoundManager(BuildingSoundSettings settings, ISoundPlayer soundPlayer, ISimulationSpeedReader simulationSpeedReader, ISimulationsSpeedsOverseer simulationsSpeeds, ILogger logger)
Parameters
settings BuildingSoundSettings
soundPlayer ISoundPlayer
simulationSpeedReader ISimulationSpeedReader
simulationsSpeeds ISimulationsSpeedsOverseer
logger ILogger
Fields
SoundGridsById
public readonly Dictionary<BuildingSoundManager.SoundGridId, ContentGrid<BuildingSoundManager.SoundCluster>> SoundGridsById
Field Value
- Dictionary<BuildingSoundManager.SoundGridId, ContentGrid<BuildingSoundManager.SoundCluster>>
Methods
ActivateBuilding(BuildingModel, SoundLOD)
public void ActivateBuilding(BuildingModel building, SoundLOD lod)
Parameters
building BuildingModel
lod SoundLOD
ClearActiveBuildings()
public void ClearActiveBuildings()
Dispose()
GetLOD(BuildingModel)
public SoundLOD GetLOD(BuildingModel building)
Parameters
building BuildingModel
Returns
- SoundLOD
RegisterSound(BuildingModel, IBeltLaneSoundDefinition, LaneSound, int)
public void RegisterSound(BuildingModel building, IBeltLaneSoundDefinition soundDefinition, LaneSound laneSound, int id)
Parameters
building BuildingModel
soundDefinition IBeltLaneSoundDefinition
laneSound LaneSound
id int
RegisterSounds(BuildingModel, IBeltLaneSoundDefinition, SingleItemLane, LaneSound[])
public void RegisterSounds(BuildingModel building, IBeltLaneSoundDefinition soundDefinition, SingleItemLane lane, LaneSound[] laneSFxs)
Parameters
building BuildingModel
soundDefinition IBeltLaneSoundDefinition
lane SingleItemLane
laneSFxs LaneSound[]
TriggerSound(BuildingModel, IBeltLaneSoundDefinition, LaneSound, float)
public void TriggerSound(BuildingModel building, IBeltLaneSoundDefinition soundDefinition, LaneSound laneSound, float progress01)
Parameters
building BuildingModel
soundDefinition IBeltLaneSoundDefinition
laneSound LaneSound
progress01 float
TriggerSounds(BuildingModel, IBeltLaneSoundDefinition, SingleItemLane, LaneSound[], Ticks)
public void TriggerSounds(BuildingModel entity, IBeltLaneSoundDefinition soundDefinition, SingleItemLane lane, LaneSound[] laneSFxs, Ticks progress_T)
Parameters
entity BuildingModel
soundDefinition IBeltLaneSoundDefinition
lane SingleItemLane
laneSFxs LaneSound[]
progress_T Ticks
Update()
UpdateSound(BuildingModel, IBeltLaneSoundDefinition, LaneSound, int, float)
public void UpdateSound(BuildingModel building, IBeltLaneSoundDefinition soundDefinition, LaneSound sound, int id, float progress01)
Parameters
building BuildingModel
soundDefinition IBeltLaneSoundDefinition
sound LaneSound
id int
progress01 float
UpdateSounds(BuildingModel, IBeltLaneSoundDefinition, SingleItemLane, LaneSound[])
public void UpdateSounds(BuildingModel building, IBeltLaneSoundDefinition laneDefinition, SingleItemLane lane, LaneSound[] laneSounds)
Parameters
building BuildingModel
laneDefinition IBeltLaneSoundDefinition
lane SingleItemLane
laneSounds LaneSound[]