Skip to content

Commit 9dfe3a2

Browse files
committed
add SongTrigger
1 parent 3e23c30 commit 9dfe3a2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using GeometryDashAPI.Attributes;
2+
using GeometryDashAPI.Levels.GameObjects.Default;
3+
4+
namespace GeometryDashAPI.Levels.GameObjects.Triggers;
5+
6+
[GameBlock(1934)]
7+
public class SongTrigger : Trigger
8+
{
9+
[GameProperty("392", 0)]
10+
public int SongId { get; set; }
11+
12+
[GameProperty("399", false)]
13+
public bool Prep { get; set; }
14+
15+
[GameProperty("400", false)]
16+
public bool LoadPrep { get; set; }
17+
18+
[GameProperty("404", 0)]
19+
public int Speed { get; set; }
20+
21+
[GameProperty("406", 1f, alwaysSet: true)]
22+
public float Volume { get; set; } = 1f;
23+
24+
[GameProperty("413", false)]
25+
public bool Loop { get; set; }
26+
27+
[GameProperty("432", 0)]
28+
public int Channel { get; set; }
29+
30+
public SongTrigger() : base(1934)
31+
{
32+
}
33+
}

0 commit comments

Comments
 (0)