using Intrepid.GameManagers;
using Intrepid.Gameplay.Journey.Messages.Events;
using UnityEngine;

namespace Intrepid.Gameplay.Journey.Runtime
{
    public class JourneyLandingService : MonoBehaviour
    {
        public void LandAtEndpoint(StageTag destinyStageTag, string destinyEndpointId)
        {
            Proxy.Instance.EventBus.Raise(new JourneyLandingRequestedEvent
            {
                DestinyStageTag = destinyStageTag,
                DestinyEndpoint = destinyEndpointId
            });
        }

        public void DeployAt(Vector3 deploymentPoint, Vector2 deploymentDirection)
        {
            Proxy.Instance.EventBus.Raise(new StageDispatchDeploymentPointEvent
            {
                DeploymentPoint = deploymentPoint,
                DeploymentDirection = deploymentDirection
            });
        }
    }
}