Skip to content

Commit 61d97d3

Browse files
authored
refactor: Remove VisiblePlayers property (#845)
* Removed uselless VisiblePlayers property
1 parent d10d7f5 commit 61d97d3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

EXILED/Exiled.API/Features/Roles/Scp939Role.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace Exiled.API.Features.Roles
1010
using System.Collections.Generic;
1111

1212
using Exiled.API.Enums;
13-
using Exiled.API.Features.Pools;
1413

1514
using PlayerRoles;
1615
using PlayerRoles.PlayableScps;
@@ -85,11 +84,6 @@ internal Scp939Role(Scp939GameRole baseRole)
8584
MimicPointController = EnvironmentalMimicry._mimicPoint;
8685
}
8786

88-
/// <summary>
89-
/// Finalizes an instance of the <see cref="Scp939Role"/> class.
90-
/// </summary>
91-
~Scp939Role() => ListPool<Player>.Pool.Return(VisiblePlayers);
92-
9387
/// <inheritdoc/>
9488
public override RoleTypeId Type { get; } = RoleTypeId.Scp939;
9589

@@ -236,11 +230,6 @@ public float MimicryCooldown
236230
/// </summary>
237231
public Vector3? MimicryPointPosition => MimicPointController.Active ? MimicPointController.MimicPointTransform.position : null;
238232

239-
/// <summary>
240-
/// Gets a list of players this SCP-939 instance can see regardless of their movement.
241-
/// </summary>
242-
public List<Player> VisiblePlayers { get; } = ListPool<Player>.Pool.Get();
243-
244233
/// <summary>
245234
/// Gets the <see cref="Scp939GameRole"/> instance.
246235
/// </summary>

0 commit comments

Comments
 (0)