quantum-space-buddies/QSB/Animation/NPC/WorldObjects/NpcAnimController.cs
2021-12-26 21:01:24 -08:00

22 lines
591 B
C#

using QSB.Utility;
using QSB.WorldSync;
using UnityEngine;
namespace QSB.Animation.NPC.WorldObjects
{
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
where T : MonoBehaviour
{
public abstract CharacterDialogueTree GetDialogueTree();
public virtual void StartConversation()
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
public virtual void EndConversation()
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
public virtual bool InConversation()
=> false;
}
}