/// <summary> /// Initializes a new instance of the <see cref="EndConditionsCompat"/> class. /// </summary> /// <param name="scp343Role">An instance of the <see cref="Scp343Role"/> class.</param> public EndConditionsCompat(Scp343Role scp343Role) { this.scp343Role = scp343Role; foreach (Assembly pluginAssembly in Loader.Locations.Keys) { if (pluginAssembly.GetName().Name != "EndConditions") { continue; } blacklistedPlayersProperty = pluginAssembly.GetType("EndConditions.API")?.GetProperty("BlacklistedPlayers", BindingFlags.Public | BindingFlags.Static); modifiedRolesProperty = pluginAssembly.GetType("EndConditions.API")?.GetProperty("ModifiedRoles", BindingFlags.Public | BindingFlags.Static); endConditionsInstalled = blacklistedPlayersProperty != null && modifiedRolesProperty != null; if (endConditionsInstalled) { Log.Info("EndConditions compatibility enabled! You can declare Scp343 in your EndConditions config just like any other class."); break; } } }
/// <summary> /// Initializes a new instance of the <see cref="WarheadEvents"/> class. /// </summary> /// <param name="scp343Role">An instance of the <see cref="Scp343Role"/> class.</param> public WarheadEvents(Scp343Role scp343Role) => this.scp343Role = scp343Role;
/// <summary> /// Initializes a new instance of the <see cref="ServerEvents"/> class. /// </summary> /// <param name="scp343Role">An instance of the <see cref="Scp343Role"/> class.</param> public ServerEvents(Scp343Role scp343Role) { this.scp343Role = scp343Role; random = Exiled.Loader.Loader.Random; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerEvents"/> class. /// </summary> /// <param name="scp343Role">An instance of the <see cref="Scp343Role"/> class.</param> public PlayerEvents(Scp343Role scp343Role) => this.scp343Role = scp343Role;