Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.5 #39

Merged
merged 3 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions SiraUtil/Objects/Beatmap/BurstSliderHeadNoteRegistration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;

namespace SiraUtil.Objects.Beatmap
{
/// <summary>
/// Registers a redecorator for the burst slider head (i.e. head in the chain).
/// </summary>
public sealed class BurstSliderHeadNoteRegistration : TemplateRedecoratorRegistration<GameNoteController, BeatmapObjectsInstaller>
{
/// <summary>
/// Creates a new redecorator registration.
/// </summary>
/// <param name="redecorateCall">This is called when the object is being redecorated.</param>
/// <param name="priority">The redecoration priority.</param>
/// <param name="chain">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.</param>
public BurstSliderHeadNoteRegistration(Func<GameNoteController, GameNoteController> redecorateCall, int priority = 0, bool chain = true) : base("_burstSliderHeadNotePrefab", redecorateCall, priority, chain) { }
}
}
20 changes: 20 additions & 0 deletions SiraUtil/Objects/Beatmap/BurstSliderNoteRegistration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;

namespace SiraUtil.Objects.Beatmap
{
/// <summary>
/// Registers a redecorator for the burst slider notes (i.e. links in the chain).
/// </summary>
public sealed class BurstSliderNoteRegistration : TemplateRedecoratorRegistration<BurstSliderGameNoteController, BeatmapObjectsInstaller>
{
/// <summary>
/// Creates a new redecorator registration.
/// </summary>
/// <param name="redecorateCall">This is called when the object is being redecorated.</param>
/// <param name="priority">The redecoration priority.</param>
/// <param name="chain">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.</param>
public BurstSliderNoteRegistration(Func<BurstSliderGameNoteController, BurstSliderGameNoteController> redecorateCall, int priority = 0, bool chain = true) : base("_burstSliderNotePrefab", redecorateCall, priority, chain) { }
}
}
2 changes: 1 addition & 1 deletion SiraUtil/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down