Skip to content

Commit ebfedb1

Browse files
authored
Better format Surface Audio Type (#767)
1 parent b790cbf commit ebfedb1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

addons/godot-xr-tools/audio/surface_audio_type.gd

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,32 @@
33
class_name XRToolsSurfaceAudioType
44
extends Resource
55

6-
76
## XRTools Surface Type Resource
87
##
98
## This resource defines a type of surface, and the audio streams to play when
109
## the user steps on it
1110

1211

1312
## Surface name
14-
@export var name : String = ""
13+
@export var name: String = ""
1514

1615
## Optional audio stream to play when the player jumps on this surface
17-
@export var jump_sound : AudioStream
16+
@export var jump_sound: AudioStream
1817

1918
## Optional audio stream to play when the player lands on this surface
20-
@export var hit_sound : AudioStream
19+
@export var hit_sound: AudioStream
2120

2221
## Audio streams to play when the player walks on this surface
23-
@export var walk_sounds :Array[AudioStream] = []
22+
@export var walk_sounds: Array[AudioStream] = []
2423

2524
## Walking sound minimum pitch (to randomize steps)
26-
@export_range(0.5, 1.0) var walk_pitch_minimum : float = 0.8
25+
@export_range(0.5, 1.0) var walk_pitch_minimum: float = 0.8
2726

2827
## Walking sound maximum pitch (to randomize steps)
29-
@export_range(1.0, 2.0) var walk_pitch_maximum : float = 1.2
28+
@export_range(1.0, 2.0) var walk_pitch_maximum: float = 1.2
3029

3130

32-
# This method checks for configuration issues.
31+
# Checks for configuration issues.
3332
func _get_configuration_warnings() -> PackedStringArray:
3433
var warnings := PackedStringArray()
3534

0 commit comments

Comments
 (0)