diff --git a/GeometryDashAPI/Levels/GameObjects/Triggers/EditSfxTrigger.cs b/GeometryDashAPI/Levels/GameObjects/Triggers/EditSfxTrigger.cs index 3203e6c..d90bc93 100644 --- a/GeometryDashAPI/Levels/GameObjects/Triggers/EditSfxTrigger.cs +++ b/GeometryDashAPI/Levels/GameObjects/Triggers/EditSfxTrigger.cs @@ -9,6 +9,18 @@ public class EditSfxTrigger : Trigger [GameProperty("10", 0.5f)] public float Duration { get; set; } = 0.5f; + [GameProperty("51", 0)] + public int GroupId1 { get; set; } + + [GameProperty("71", 0)] + public int GroupId2 { get; set; } + + [GameProperty("138", false)] + public bool P1 { get; set; } + + [GameProperty("200", false)] + public bool P2 { get; set; } + [GameProperty("404", 0)] public int Speed { get; set; } @@ -30,9 +42,33 @@ public class EditSfxTrigger : Trigger [GameProperty("419", false)] public bool ChangeSpeed { get; set; } + [GameProperty("421", 1f)] + public float VolNear { get; set; } = 1f; + + [GameProperty("422", 0.5f)] + public float VolMed { get; set; } = 0.5f; + + [GameProperty("423", 0f)] + public float VolFar { get; set; } + + [GameProperty("424", 0f)] + public int MinDist { get; set; } + + [GameProperty("425", 0f)] + public int Dist2 { get; set; } + + [GameProperty("426", 0f)] + public int Dist3 { get; set; } + + [GameProperty("428", false)] + public bool Cam { get; set; } + [GameProperty("455", 0)] public int SfxGroup { get; set; } + [GameProperty("458", SoundPropagationDirection.All)] + public SoundPropagationDirection Propagation { get; set; } + [GameProperty("457", 0)] public int GroupId { get; set; } diff --git a/GeometryDashAPI/Levels/GameObjects/Triggers/EditSongTrigger.cs b/GeometryDashAPI/Levels/GameObjects/Triggers/EditSongTrigger.cs index b2aa5d4..0d7baae 100644 --- a/GeometryDashAPI/Levels/GameObjects/Triggers/EditSongTrigger.cs +++ b/GeometryDashAPI/Levels/GameObjects/Triggers/EditSongTrigger.cs @@ -9,6 +9,18 @@ public class EditSongTrigger : Trigger [GameProperty("10", 0.5f)] public float Duration { get; set; } = 0.5f; + [GameProperty("51", 0)] + public int GroupId1 { get; set; } + + [GameProperty("71", 0)] + public int GroupId2 { get; set; } + + [GameProperty("138", false)] + public bool P1 { get; set; } + + [GameProperty("200", false)] + public bool P2 { get; set; } + [GameProperty("404", 0)] public int Speed { get; set; } @@ -27,9 +39,33 @@ public class EditSongTrigger : Trigger [GameProperty("419", false)] public bool ChangeSpeed { get; set; } + [GameProperty("421", 1f)] + public float VolNear { get; set; } = 1f; + + [GameProperty("422", 0.5f)] + public float VolMed { get; set; } = 0.5f; + + [GameProperty("423", 0f)] + public float VolFar { get; set; } + + [GameProperty("424", 0f)] + public int MinDist { get; set; } + + [GameProperty("425", 0f)] + public int Dist2 { get; set; } + + [GameProperty("426", 0f)] + public int Dist3 { get; set; } + + [GameProperty("428", false)] + public bool Cam { get; set; } + [GameProperty("432", 0)] public int Channel { get; set; } + [GameProperty("458", SoundPropagationDirection.All)] + public SoundPropagationDirection Propagation { get; set; } + public EditSongTrigger() : base(3605) { } diff --git a/GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs b/GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs index cfd5259..d879349 100644 --- a/GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs +++ b/GeometryDashAPI/Levels/GameObjects/Triggers/SfxTrigger.cs @@ -3,6 +3,17 @@ namespace GeometryDashAPI.Levels.GameObjects.Triggers; +public enum SoundPropagationDirection +{ + All, + Horizontal, + Left, + Right, + Vertical, + Down, + Up +} + public enum ReverbTypes { Generic, @@ -33,6 +44,21 @@ public enum ReverbTypes [GameBlock(3602)] public class SfxTrigger : Trigger { + [GameProperty("51", 0)] + public int GroupId1 { get; set; } + + [GameProperty("71", 0)] + public int GroupId2 { get; set; } + + [GameProperty("138", false)] + public bool P1 { get; set; } + + [GameProperty("200", false)] + public bool P2 { get; set; } + + [GameProperty("392", 0)] + public int SongId { get; set; } + [GameProperty("404", 0)] public int Speed { get; set; } @@ -45,22 +71,73 @@ public class SfxTrigger : Trigger [GameProperty("407", false)] public bool Reverb { get; set; } + [GameProperty("408", 0)] + public int Start { get; set; } + + [GameProperty("409", 0)] + public int FadeIn { get; set; } + + [GameProperty("410", 0)] + public int End { get; set; } + + [GameProperty("411", 0)] + public int FadeOut { get; set; } + [GameProperty("412", false)] public bool Fft { get; set; } [GameProperty("413", false)] public bool Loop { get; set; } + [GameProperty("415", false)] + public bool IsUnique { get; set; } + + [GameProperty("416", 0)] + public int UniqueId { get; set; } + + [GameProperty("420", false)] + public bool Override { get; set; } + + [GameProperty("421", 1f)] + public float VolNear { get; set; } = 1f; + + [GameProperty("422", 0.5f)] + public float VolMed { get; set; } = 0.5f; + + [GameProperty("423", 0f)] + public float VolFar { get; set; } + + [GameProperty("424", 0f)] + public int MinDist { get; set; } + + [GameProperty("425", 0f)] + public int Dist2 { get; set; } + + [GameProperty("426", 0f)] + public int Dist3 { get; set; } + + [GameProperty("428", false)] + public bool Cam { get; set; } + [GameProperty("433", false)] public bool PreLoad { get; set; } - [GameProperty("392", false)] - public int SongId { get; set; } + [GameProperty("434", 0f)] + public float MinInterval { get; set; } + + [GameProperty("455", 0)] + public int SfxGroup { get; set; } + + [GameProperty("458", SoundPropagationDirection.All)] + public SoundPropagationDirection Propagation { get; set; } + + [GameProperty("489", false)] + public bool IgnoreVolumeTest { get; set; } [GameProperty("490", false)] public float Duration { get; set; } - [GameProperty("502", false)] + [GameProperty("502", ReverbTypes.Generic)] public ReverbTypes ReverbType { get; set; } [GameProperty("503", false)] diff --git a/GeometryDashAPI/Levels/GameObjects/Triggers/SongTrigger.cs b/GeometryDashAPI/Levels/GameObjects/Triggers/SongTrigger.cs index d8a95f2..0afdf96 100644 --- a/GeometryDashAPI/Levels/GameObjects/Triggers/SongTrigger.cs +++ b/GeometryDashAPI/Levels/GameObjects/Triggers/SongTrigger.cs @@ -21,6 +21,18 @@ public class SongTrigger : Trigger [GameProperty("406", 1f, alwaysSet: true)] public float Volume { get; set; } = 1f; + [GameProperty("408", 0)] + public int Start { get; set; } + + [GameProperty("409", 0)] + public int FadeIn { get; set; } + + [GameProperty("410", 0)] + public int End { get; set; } + + [GameProperty("411", 0)] + public int FadeOut { get; set; } + [GameProperty("413", false)] public bool Loop { get; set; }