mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 19:11:32 +00:00
27 lines
634 B
C#
27 lines
634 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 override void Init(T controller, int id)
|
|
{
|
|
ObjectId = id;
|
|
AttachedObject = controller;
|
|
}
|
|
|
|
public abstract CharacterDialogueTree GetDialogueTree();
|
|
|
|
public virtual void StartConversation()
|
|
=> GetDialogueTree().RaiseEvent("OnStartConversation");
|
|
|
|
public virtual void EndConversation()
|
|
=> GetDialogueTree().RaiseEvent("OnEndConversation");
|
|
|
|
public abstract bool InConversation();
|
|
}
|
|
}
|