2021-07-07 08:02:23 +00:00
|
|
|
|
using QSB.Utility;
|
|
|
|
|
using QSB.WorldSync;
|
2021-04-29 17:30:45 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Animation.NPC.WorldObjects
|
|
|
|
|
{
|
2021-04-29 20:00:02 +00:00
|
|
|
|
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
|
2021-04-29 17:30:45 +00:00
|
|
|
|
where T : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public abstract CharacterDialogueTree GetDialogueTree();
|
|
|
|
|
|
2021-07-07 08:02:23 +00:00
|
|
|
|
public virtual void StartConversation()
|
2021-12-27 05:01:24 +00:00
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
|
2021-04-29 17:30:45 +00:00
|
|
|
|
|
2021-07-07 08:02:23 +00:00
|
|
|
|
public virtual void EndConversation()
|
2021-12-27 05:01:24 +00:00
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
|
2021-04-29 19:59:25 +00:00
|
|
|
|
|
2021-12-19 12:37:44 +00:00
|
|
|
|
public virtual bool InConversation()
|
|
|
|
|
=> false;
|
2021-04-29 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|