22 lines
535 B
C#
Raw Normal View History

2021-07-07 09:02:23 +01:00
using QSB.Utility;
using QSB.WorldSync;
2021-04-29 18:30:45 +01:00
using UnityEngine;
namespace QSB.Animation.NPC.WorldObjects
{
2021-04-29 21:00:02 +01:00
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
2021-04-29 18:30:45 +01:00
where T : MonoBehaviour
{
public abstract CharacterDialogueTree GetDialogueTree();
2021-07-07 09:02:23 +01:00
public virtual void StartConversation()
=> GetDialogueTree().RaiseEvent("OnStartConversation");
2021-04-29 18:30:45 +01:00
2021-07-07 09:02:23 +01:00
public virtual void EndConversation()
=> GetDialogueTree().RaiseEvent("OnEndConversation");
2021-04-29 20:59:25 +01:00
public virtual bool InConversation()
=> false;
2021-04-29 18:30:45 +01:00
}
}