diff --git a/SiraUtil/Objects/Beatmap/BurstSliderHeadNoteRegistration.cs b/SiraUtil/Objects/Beatmap/BurstSliderHeadNoteRegistration.cs new file mode 100644 index 0000000..a556244 --- /dev/null +++ b/SiraUtil/Objects/Beatmap/BurstSliderHeadNoteRegistration.cs @@ -0,0 +1,20 @@ +using System; + +namespace SiraUtil.Objects.Beatmap +{ + /// + /// Registers a redecorator for the burst slider head (i.e. head in the chain). + /// + public sealed class BurstSliderHeadNoteRegistration : TemplateRedecoratorRegistration + { + /// + /// Creates a new redecorator registration. + /// + /// This is called when the object is being redecorated. + /// The redecoration priority. + /// Whether to chain this redecoration with others. Every redecoration is now aggregated. + /// The chain will start if the highest priority object has chaining enabled and will stop once a registration + /// in the aggregate has chaining disabled. + public BurstSliderHeadNoteRegistration(Func redecorateCall, int priority = 0, bool chain = true) : base("_burstSliderHeadNotePrefab", redecorateCall, priority, chain) { } + } +} \ No newline at end of file diff --git a/SiraUtil/Objects/Beatmap/BurstSliderNoteRegistration.cs b/SiraUtil/Objects/Beatmap/BurstSliderNoteRegistration.cs new file mode 100644 index 0000000..ff59ef9 --- /dev/null +++ b/SiraUtil/Objects/Beatmap/BurstSliderNoteRegistration.cs @@ -0,0 +1,20 @@ +using System; + +namespace SiraUtil.Objects.Beatmap +{ + /// + /// Registers a redecorator for the burst slider notes (i.e. links in the chain). + /// + public sealed class BurstSliderNoteRegistration : TemplateRedecoratorRegistration + { + /// + /// Creates a new redecorator registration. + /// + /// This is called when the object is being redecorated. + /// The redecoration priority. + /// Whether to chain this redecoration with others. Every redecoration is now aggregated. + /// The chain will start if the highest priority object has chaining enabled and will stop once a registration + /// in the aggregate has chaining disabled. + public BurstSliderNoteRegistration(Func redecorateCall, int priority = 0, bool chain = true) : base("_burstSliderNotePrefab", redecorateCall, priority, chain) { } + } +} \ No newline at end of file diff --git a/SiraUtil/manifest.json b/SiraUtil/manifest.json index 53854e9..8d14930 100644 --- a/SiraUtil/manifest.json +++ b/SiraUtil/manifest.json @@ -3,7 +3,7 @@ "id": "SiraUtil", "name": "SiraUtil", "author": "Auros", - "version": "3.0.4", + "version": "3.0.5", "icon": "SiraUtil.Resources.logo.png", "description": "A powerful utility mod which expands the capabilities and provides more tools to Beat Saber modders.", "gameVersion": "1.20.0",