﻿using UnityEngine;

namespace pdinklag.CPW.Common
{
    /// <summary>
    /// A waypoint for entrances.
    /// </summary>
    public class EntranceWaypoint : MonoBehaviour
    {
        /// <summary>
        /// An enumeration of available entrance waypoints.
        /// </summary>
        public enum Enum {
            /// <summary>
            /// At the entrance curtain.
            /// </summary>
            Curtain,

            /// <summary>
            /// The center of the stage.
            /// </summary>
            StageCenter,

            /// <summary>
            /// The middle of the ramp.
            /// </summary>
            RampMiddle,

            /// <summary>
            /// North ringside (towards the ramp).
            /// </summary>
            RingsideNorth,
        }

#if UNITY_EDITOR
        private void OnDrawGizmos()
        {
            var xform = transform;
            DebugExtension.DrawArrow(xform.position, xform.forward, Color.gray);
            Gizmos.DrawIcon(xform.position, "sv_icon_dot0_pix16_gizmo");
        }
#endif
    }
}
