2021-07-07 08:02:23 +00:00
|
|
|
|
using QSB.Utility;
|
|
|
|
|
using QSB.WorldSync;
|
2021-04-29 17:30:45 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.Animation.NPC.WorldObjects;
|
|
|
|
|
|
|
|
|
|
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
|
|
|
|
|
where T : MonoBehaviour
|
2021-04-29 17:30:45 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public abstract CharacterDialogueTree GetDialogueTree();
|
2021-04-29 17:30:45 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void StartConversation()
|
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
|
2021-04-29 17:30:45 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void EndConversation()
|
|
|
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|