Decompiled source of EntityLagFixerUpper v0.0.2

EntityLagFixerUpper.dll

Decompiled a month ago
using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using Microsoft.CodeAnalysis;
using UnboundLib.GameModes;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = "")]
[assembly: AssemblyVersion("0.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("entity-lag-fixer-upper", "Entity lag fixer upper", "0.0.1")]
[BepInProcess("Rounds.exe")]
public class EntityLagFixerUpper : BaseUnityPlugin
{
	internal static string modInitials = "ELFU";

	private void Awake()
	{
	}

	[IteratorStateMachine(/*Could not decode attribute arguments.*/)]
	internal static IEnumerator RoundEnd(IGameModeHandler gm)
	{
		GameObject[] array = GameObject.FindGameObjectsWithTag("Bullet");
		for (int i = 0; i < array.Length; i++)
		{
			Object.Destroy((Object)(object)array[i]);
		}
		yield return null;
	}

	private void Start()
	{
		GameModeManager.AddHook("PointEnd", (Func<IGameModeHandler, IEnumerator>)RoundEnd);
	}
}