Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

LocalBuilder cause = generator.DeclareLocal(typeof(string));
LocalBuilder enumerator = generator.DeclareLocal(typeof(IEnumerator<Footprint>));
LocalBuilder footprint = generator.DeclareLocal(typeof(Footprint));

ExceptionBlock beginTry = new(ExceptionBlockType.BeginExceptionBlock);
ExceptionBlock beginFinally = new(ExceptionBlockType.BeginFinallyBlock);
Expand Down Expand Up @@ -78,13 +79,23 @@
// start of loop
new CodeInstruction(OpCodes.Ldloc_S, enumerator).WithLabels(loopLabel),
new(OpCodes.Callvirt, PropertyGetter(typeof(IEnumerator<Footprint>), nameof(IEnumerator<Footprint>.Current))),
new(OpCodes.Stloc_S, footprint),
new(OpCodes.Ldloc_S, footprint),
new(OpCodes.Call, Method(typeof(Player), nameof(Player.Get), new[] { typeof(Footprint) })),
new(OpCodes.Ldloc_S, cause),
new(OpCodes.Newobj, Constructor(typeof(AnnouncingScpTerminationEventArgs), new[] { typeof(Player), typeof(string) })),
new(OpCodes.Dup),
new(OpCodes.Dup),
new(OpCodes.Call, Method(typeof(Map), nameof(Map.OnAnnouncingScpTermination))),
new(OpCodes.Callvirt, PropertyGetter(typeof(AnnouncingScpTerminationEventArgs), nameof(AnnouncingScpTerminationEventArgs.TerminationCause))),
new(OpCodes.Stloc_S, cause),
new(OpCodes.Callvirt, PropertyGetter(typeof(AnnouncingScpTerminationEventArgs), nameof(AnnouncingScpTerminationEventArgs.IsAllowed))),
new(OpCodes.Brtrue, entryLabel),

new(OpCodes.Ldarg_0),
new(OpCodes.Ldfld, Field(typeof(CassieScpTerminationAnnouncement), nameof(CassieScpTerminationAnnouncement._victims))),
new(OpCodes.Ldloc_S, footprint),
new(OpCodes.Callvirt, Method(typeof(List<Footprint>), nameof(List<>.Remove))),

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

Check failure on line 98 in EXILED/Exiled.Events/Patches/Events/Map/AnnouncingScpTermination.cs

View workflow job for this annotation

GitHub Actions / build

Feature 'unbound generic types in nameof operator' is not available in C# 13.0. Please use language version 14.0 or greater.

// entry point
new CodeInstruction(OpCodes.Ldloc_S, enumerator).WithLabels(entryLabel),
Expand Down
Loading