Skip to content

Commit

Permalink
add EditSfxTrigger #31
Browse files Browse the repository at this point in the history
  • Loading branch information
Folleach committed Dec 25, 2023
1 parent 6cc4702 commit 3e23c30
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
42 changes: 42 additions & 0 deletions GeometryDashAPI/Levels/GameObjects/Triggers/EditSfxTrigger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using GeometryDashAPI.Attributes;
using GeometryDashAPI.Levels.GameObjects.Default;

namespace GeometryDashAPI.Levels.GameObjects.Triggers;

[GameBlock(3603)]
public class EditSfxTrigger : Trigger
{
[GameProperty("10", 0.5f)]
public float Duration { get; set; } = 0.5f;

[GameProperty("404", 0)]
public int Speed { get; set; }

[GameProperty("406", 1f)]
public float Volume { get; set; } = 1f;

[GameProperty("414", false)]
public bool StopLoop { get; set; }

[GameProperty("416", 0)]
public int UniqueId { get; set; }

[GameProperty("417", false)]
public bool Stop { get; set; }

[GameProperty("418", false)]
public bool ChangeVolume { get; set; }

[GameProperty("419", false)]
public bool ChangeSpeed { get; set; }

[GameProperty("455", 0)]
public int SfxGroup { get; set; }

[GameProperty("457", 0)]
public int GroupId { get; set; }

public EditSfxTrigger() : base(3603)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ public class EditSongTrigger : Trigger
{
[GameProperty("10", 0.5f)]
public float Duration { get; set; } = 0.5f;

[GameProperty("432", 0)]
public int Channel { get; set; }


[GameProperty("404", 0)]
public int Speed { get; set; }

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

[GameProperty("432", 0)]
public int Channel { get; set; }

public EditSongTrigger() : base(3605)
{
}
Expand Down

0 comments on commit 3e23c30

Please sign in to comment.