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()
|
2021-12-26 21:01:24 -08:00
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
|
2021-04-29 18:30:45 +01:00
|
|
|
|
|
2021-07-07 09:02:23 +01:00
|
|
|
|
public virtual void EndConversation()
|
2021-12-26 21:01:24 -08:00
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
|
2021-04-29 20:59:25 +01:00
|
|
|
|
|
2021-12-19 12:37:44 +00:00
|
|
|
|
public virtual bool InConversation()
|
|
|
|
|
=> false;
|
2021-04-29 18:30:45 +01:00
|
|
|
|
}
|
|
|
|
|
}
|