Skip to content

Commit

Permalink
Merge pull request #39 from Auros/dev
Browse files Browse the repository at this point in the history
2.0.5
  • Loading branch information
Auros committed Mar 15, 2022
2 parents 1059eaa + cd97bd6 commit 2967e19
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
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

0 comments on commit 2967e19

Please sign in to comment.