Skip to content

Commit c2d66f8

Browse files
committed
add missing fields for sfx trigger
1 parent 35a64c4 commit c2d66f8

File tree

1 file changed

+76
-14
lines changed

1 file changed

+76
-14
lines changed

GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs

Lines changed: 76 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33

44
namespace GeometryDashAPI.Levels.GameObjects.Triggers;
55

6+
public enum SoundPropagationDirection
7+
{
8+
All,
9+
Horizontal,
10+
Left,
11+
Right,
12+
Vertical,
13+
Down,
14+
Up
15+
}
16+
617
public enum ReverbTypes
718
{
819
Generic,
@@ -33,6 +44,21 @@ public enum ReverbTypes
3344
[GameBlock(3602)]
3445
public class SfxTrigger : Trigger
3546
{
47+
[GameProperty("51", 0)]
48+
public int GroupId1 { get; set; }
49+
50+
[GameProperty("71", 0)]
51+
public int GroupId2 { get; set; }
52+
53+
[GameProperty("138", false)]
54+
public bool P1 { get; set; }
55+
56+
[GameProperty("200", false)]
57+
public bool P2 { get; set; }
58+
59+
[GameProperty("392", 0)]
60+
public int SongId { get; set; }
61+
3662
[GameProperty("404", 0)]
3763
public int Speed { get; set; }
3864

@@ -41,41 +67,77 @@ public class SfxTrigger : Trigger
4167

4268
[GameProperty("406", 1f, alwaysSet: true)]
4369
public float Volume { get; set; } = 1f;
44-
45-
[GameProperty("455", 0)]
46-
public int SfxGroup { get; set; }
47-
70+
71+
[GameProperty("407", false)]
72+
public bool Reverb { get; set; }
73+
4874
[GameProperty("408", 0)]
4975
public int Start { get; set; }
50-
51-
[GameProperty("410", 0)]
52-
public int End { get; set; }
53-
76+
5477
[GameProperty("409", 0)]
5578
public int FadeIn { get; set; }
79+
80+
[GameProperty("410", 0)]
81+
public int End { get; set; }
5682

5783
[GameProperty("411", 0)]
5884
public int FadeOut { get; set; }
5985

60-
[GameProperty("407", false)]
61-
public bool Reverb { get; set; }
62-
6386
[GameProperty("412", false)]
6487
public bool Fft { get; set; }
6588

6689
[GameProperty("413", false)]
6790
public bool Loop { get; set; }
6891

92+
[GameProperty("415", false)]
93+
public bool IsUnique { get; set; }
94+
95+
[GameProperty("416", 0)]
96+
public int UniqueId { get; set; }
97+
98+
[GameProperty("420", false)]
99+
public bool Override { get; set; }
100+
101+
[GameProperty("421", 1f)]
102+
public float VolNear { get; set; } = 1f;
103+
104+
[GameProperty("422", 0.5f)]
105+
public float VolMed { get; set; } = 0.5f;
106+
107+
[GameProperty("423", 0f)]
108+
public float VolFar { get; set; }
109+
110+
[GameProperty("424", 0f)]
111+
public int MinDist { get; set; }
112+
113+
[GameProperty("425", 0f)]
114+
public int Dist2 { get; set; }
115+
116+
[GameProperty("426", 0f)]
117+
public int Dist3 { get; set; }
118+
119+
[GameProperty("428", false)]
120+
public bool Cam { get; set; }
121+
69122
[GameProperty("433", false)]
70123
public bool PreLoad { get; set; }
71124

72-
[GameProperty("392", false)]
73-
public int SongId { get; set; }
125+
[GameProperty("434", 0f)]
126+
public float MinInterval { get; set; }
127+
128+
[GameProperty("455", 0)]
129+
public int SfxGroup { get; set; }
130+
131+
[GameProperty("458", SoundPropagationDirection.All)]
132+
public SoundPropagationDirection Propagation { get; set; }
133+
134+
[GameProperty("489", false)]
135+
public bool IgnoreVolumeTest { get; set; }
74136

75137
[GameProperty("490", false)]
76138
public float Duration { get; set; }
77139

78-
[GameProperty("502", false)]
140+
[GameProperty("502", ReverbTypes.Generic)]
79141
public ReverbTypes ReverbType { get; set; }
80142

81143
[GameProperty("503", false)]

0 commit comments

Comments
 (0)