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

namespace Onward.CustomContent.Assets
{
    public class GM_GunGame : GM_Base
    {
        [Header("FFA Spawns")]
        public SpawnSystem[] Spawns;

        public GM_GunGame()
           : base(GM_Base.EGameModeType.GunGame)
        {
        }

        void Start()
        {
            Util.EnforceSingleInstance<GM_GunGame>();
        }

        public override void Validate()
        {
            base.Validate();

            Objective.ValidateSpawnSystemEntries(ref Spawns, gameObject);

            if (Spawns.Length <= 0)
                throw new ContentExceptionWithGameObject(gameObject, "No spawns for FFA mode.");
        }
    }
}