using Newtonsoft.Json;
using System.ComponentModel;
namespace NewHorizons.External.Modules.Props.Audio
{
[JsonObject]
public abstract class BaseAudioInfo : GeneralPointPropInfo
{
///
/// The audio to use. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list.
///
public string audio;
///
/// At this distance the sound is at its loudest.
///
public float minDistance;
///
/// The sound will drop off by this distance (Note: for signals, this only effects when it is heard aloud and not via the signalscope).
///
[DefaultValue(5f)] public float maxDistance = 30f;
///
/// How loud the sound will play
///
[DefaultValue(0.5f)] public float volume = 0.5f;
}
}