mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add reverb volumes.
This commit is contained in:
parent
af935639d8
commit
3f6b6fab99
@ -6,7 +6,7 @@ namespace NewHorizons.Builder.Volumes
|
|||||||
{
|
{
|
||||||
public static class VolumeBuilder
|
public static class VolumeBuilder
|
||||||
{
|
{
|
||||||
public static TVolume Make<TVolume>(GameObject planetGO, Sector sector, VolumesModule.VolumeInfo info) where TVolume : BaseVolume
|
public static TVolume Make<TVolume>(GameObject planetGO, Sector sector, VolumesModule.VolumeInfo info) where TVolume : MonoBehaviour
|
||||||
{
|
{
|
||||||
var go = new GameObject(typeof(TVolume).Name);
|
var go = new GameObject(typeof(TVolume).Name);
|
||||||
go.SetActive(false);
|
go.SetActive(false);
|
||||||
|
|||||||
@ -64,6 +64,13 @@ namespace NewHorizons.Builder.Volumes
|
|||||||
VolumeBuilder.Make<Components.InterferenceVolume>(go, sector, interferenceVolume);
|
VolumeBuilder.Make<Components.InterferenceVolume>(go, sector, interferenceVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (config.Volumes.reverbVolumes != null)
|
||||||
|
{
|
||||||
|
foreach (var reverbVolume in config.Volumes.reverbVolumes)
|
||||||
|
{
|
||||||
|
VolumeBuilder.Make<ReverbTriggerVolume>(go, sector, reverbVolume);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,6 +44,11 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public RevealVolumeInfo[] revealVolumes;
|
public RevealVolumeInfo[] revealVolumes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Add reverb volumes to this planet. Great for echoes in caves.
|
||||||
|
/// </summary>
|
||||||
|
public VolumeInfo[] reverbVolumes;
|
||||||
|
|
||||||
[JsonObject]
|
[JsonObject]
|
||||||
public class VolumeInfo
|
public class VolumeInfo
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user