using System;
using UnityEngine;
namespace Framework.Dialogue {
/// Container for the result returned by a dialogue placement search
public struct DialoguePlacement {
/// Initialize a new dialogue UI transform + prefab container
/// Actor the dialogue UI is being displayed for
/// GameObject that owns the dialogue UI
/// Transform the dialogue UI should be placed at
public DialoguePlacement(
GameObject actor, DialogueOwner owner, Transform transform
) {
this.Actor = actor;
this.Owner = owner;
this.Transform = transform;
}
/// Actor the dialogue UI will be displayed for, if any
///
/// This can be used to query addition information, such as a portrait or
/// the current state of the actor.
///
public GameObject Actor;
/// Owner on which the placement was discovered
public DialogueOwner Owner;
/// Location and orientation the dialogue canvas should be shown at
public Transform Transform;
}
} // namespace Framework.Dialogue