mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Merge branch 'dev' into feat-addressables-2
This commit is contained in:
commit
5af10b52a4
2 files changed
+13
No files matched your search
@@ -104,6 +104,13 @@ public abstract class BaseModifier : IOptionable
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when a meeting starts.
|
||||
/// </summary>
|
||||
public virtual void OnMeetingStart()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the player can vent.
|
||||
/// </summary>
|
||||
|
||||
@@ -5,6 +5,7 @@ using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
||||
using MiraAPI.Events;
|
||||
using MiraAPI.Events.Vanilla.Meeting;
|
||||
using MiraAPI.Events.Vanilla.Meeting.Voting;
|
||||
using MiraAPI.Modifiers;
|
||||
using MiraAPI.Utilities;
|
||||
using MiraAPI.Voting;
|
||||
|
||||
@@ -28,6 +29,11 @@ internal static class MeetingHudPatches
|
||||
{
|
||||
voteData.SetRemainingVotes(0);
|
||||
}
|
||||
|
||||
foreach (var modifier in plr.GetModifierComponent().ActiveModifiers)
|
||||
{
|
||||
modifier.OnMeetingStart();
|
||||
}
|
||||
}
|
||||
var @event = new StartMeetingEvent(__instance);
|
||||
MiraEventManager.InvokeEvent(@event);
|
||||
|
||||
Reference in new issue
Block a user