Skip to content

Commit

Permalink
add SfxTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Folleach committed Dec 20, 2023
1 parent 829ac58 commit 3291483
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
using GeometryDashAPI.Attributes;
using GeometryDashAPI.Levels.GameObjects.Default;

namespace GeometryDashAPI.Levels.GameObjects.Triggers;

public enum ReverbTypes
{
Generic,
PaddedCell,
Room,
BathRoom,
LivingRoom,
StoneRoom,
Auditorium,
ConcertHall,
Cave,
Arena,
Hangar,
CarpetedHallway,
Hallway,
StoneCorridor,
Alley,
Forest,
City,
Mountains,
Quarry,
Plain,
ParkingLot,
SewerPipe,
Underwater
}

[GameBlock(3602)]
public class SfxTrigger : Trigger
{
[GameProperty("404", 0)]
public int Speed { get; set; }

[GameProperty("405", 0)]
public int Pitch { get; set; }

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

[GameProperty("407", false)]
public bool Reverb { get; set; }

[GameProperty("412", false)]
public bool Fft { get; set; }

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

[GameProperty("433", false)]
public bool PreLoad { get; set; }

[GameProperty("392", false)]
public int SongId { get; set; }

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

[GameProperty("502", false)]
public ReverbTypes ReverbType { get; set; }

[GameProperty("503", false)]
public bool EnableReverb { get; set; }

public SfxTrigger() : base(3602)
{
}
}

0 comments on commit 3291483

Please sign in to comment.