using OWML.Utils; using QSB.Player; using System.Collections.Generic; namespace QSB.Animation.NPC.WorldObjects { internal class QSBCharacterAnimController : NpcAnimController { private readonly List _playersInHeadZone = new List(); public List 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); } public override CharacterDialogueTree GetDialogueTree() => AttachedObject.GetValue("_dialogueTree"); public override bool InConversation() => AttachedObject.GetValue("_inConversation"); } }