2021-10-28 15:18:22 +00:00
|
|
|
|
using QSB.Player;
|
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Animation.NPC.WorldObjects
|
|
|
|
|
{
|
2021-10-29 22:00:13 +00:00
|
|
|
|
internal class QSBSolanumAnimController : WorldObject<SolanumAnimController>
|
2021-10-28 15:18:22 +00:00
|
|
|
|
{
|
2021-11-20 19:49:50 +00:00
|
|
|
|
private readonly List<PlayerInfo> _playersInHeadZone = new();
|
2021-10-28 15:18:22 +00:00
|
|
|
|
|
|
|
|
|
public List<PlayerInfo> GetPlayersInHeadZone()
|
|
|
|
|
=> _playersInHeadZone;
|
|
|
|
|
|
|
|
|
|
public void AddPlayerToHeadZone(PlayerInfo player)
|
|
|
|
|
{
|
|
|
|
|
if (_playersInHeadZone.Contains(player))
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_playersInHeadZone.Add(player);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RemovePlayerFromHeadZone(PlayerInfo player)
|
|
|
|
|
{
|
|
|
|
|
if (!_playersInHeadZone.Contains(player))
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_playersInHeadZone.Remove(player);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|