Skip to content

Commit 3e23c30

Browse files
committed
add EditSfxTrigger #31
1 parent 6cc4702 commit 3e23c30

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using GeometryDashAPI.Attributes;
2+
using GeometryDashAPI.Levels.GameObjects.Default;
3+
4+
namespace GeometryDashAPI.Levels.GameObjects.Triggers;
5+
6+
[GameBlock(3603)]
7+
public class EditSfxTrigger : Trigger
8+
{
9+
[GameProperty("10", 0.5f)]
10+
public float Duration { get; set; } = 0.5f;
11+
12+
[GameProperty("404", 0)]
13+
public int Speed { get; set; }
14+
15+
[GameProperty("406", 1f)]
16+
public float Volume { get; set; } = 1f;
17+
18+
[GameProperty("414", false)]
19+
public bool StopLoop { get; set; }
20+
21+
[GameProperty("416", 0)]
22+
public int UniqueId { get; set; }
23+
24+
[GameProperty("417", false)]
25+
public bool Stop { get; set; }
26+
27+
[GameProperty("418", false)]
28+
public bool ChangeVolume { get; set; }
29+
30+
[GameProperty("419", false)]
31+
public bool ChangeSpeed { get; set; }
32+
33+
[GameProperty("455", 0)]
34+
public int SfxGroup { get; set; }
35+
36+
[GameProperty("457", 0)]
37+
public int GroupId { get; set; }
38+
39+
public EditSfxTrigger() : base(3603)
40+
{
41+
}
42+
}

GeometryDashAPI/Levels/GameObjects/Triggers/EditSongTrigger.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ public class EditSongTrigger : Trigger
88
{
99
[GameProperty("10", 0.5f)]
1010
public float Duration { get; set; } = 0.5f;
11-
12-
[GameProperty("432", 0)]
13-
public int Channel { get; set; }
14-
11+
1512
[GameProperty("404", 0)]
1613
public int Speed { get; set; }
1714

@@ -30,6 +27,9 @@ public class EditSongTrigger : Trigger
3027
[GameProperty("419", false)]
3128
public bool ChangeSpeed { get; set; }
3229

30+
[GameProperty("432", 0)]
31+
public int Channel { get; set; }
32+
3333
public EditSongTrigger() : base(3605)
3434
{
3535
}

0 commit comments

Comments
 (0)