using System;

namespace Intrepid.Gameplay.Journey
{
    [Serializable]
    public sealed class JEndpoint
    {
        public string id;
        public string stageId;
        public JWorldTile worldTile;
        public JEndpointKind kind;
        public bool required;

        // Used when kind is Socket. Ignored by Anchor and Lift endpoints.
        public JSocketFace socketFace;

        public bool IsSocket => kind == JEndpointKind.Socket;
        public bool IsAnchor => kind == JEndpointKind.Anchor;
        public bool IsLift => kind == JEndpointKind.Lift;
    }
}
