Renderer/src/main/java/electrosphere/game/data/audio/SurfaceAudioCollection.java
austin d7619692ed
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
movement audio system for client
2024-08-08 11:33:51 -04:00

50 lines
1.1 KiB
Java

package electrosphere.game.data.audio;
import java.util.List;
/**
* Audio for different types of interactions with the ground
*/
public class SurfaceAudioCollection {
/**
* The audio to play by default (ie for undefined surfaces)
*/
SurfaceAudioType defaultSurfaceAudio;
/**
* The audio to play for different collections of surfaces
*/
List<SurfaceAudioType> surfaceAudio;
/**
* The voxel types to not play audio for
*/
List<Integer> ignoredVoxelTypes;
/**
* Gets the default audio for all surfaces
* @return The default audio
*/
public SurfaceAudioType getDefaultSurfaceAudio(){
return this.defaultSurfaceAudio;
}
/**
* Gets the audio to play for different surfaces
* @return The list of surface audio data
*/
public List<SurfaceAudioType> getSurfaceAudio(){
return this.surfaceAudio;
}
/**
* Gets the list of voxel types to not play audio for
* @return The list of voxel types
*/
public List<Integer> getIgnoredVoxelTypes(){
return this.ignoredVoxelTypes;
}
}