﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Onward.CustomContent.Assets
{
    public class AI_Spawnpoint : Entity
    {
        public enum ESquadType
        {
            RifleSquad,
            SniperSquad,
            AssaultSquad,
            LightSquad,
        }

        public enum EFaction
        {
            None = 0,
            Volk = 1,
            Marsoc = 2,
        }

        public GM_Base.EAISupportedGameModeType GameModeType = GM_Base.EAISupportedGameModeType.Null;
        public ESquadType SquadType = ESquadType.RifleSquad;
        public const EFaction Faction = EFaction.Volk;

#if UNITY_EDITOR
        private void OnDrawGizmos()
        {
            const float Radius = 3f;

            Gizmos.color = Faction == EFaction.Marsoc ? new Color(0f, 0.72f, 1f, 0.45f) : new Color(1f, 0.31f, 0f, 0.52f);
            Gizmos.DrawSphere(transform.position, Radius);

            Gizmos.color = Faction == EFaction.Marsoc ? new Color(0f, 0.72f, 1f, 0.45f) : new Color(1f, 0.31f, 0f, 0.45f);
            Gizmos.DrawWireSphere(transform.position, Radius);
            Gizmos.DrawSphere(transform.position, 3f);
        }
#endif
    }
}