﻿#if UNITY_EDITOR
using System;
using UnityEngine;
using YG.Insides;

namespace YG
{
    public partial class InfoYG
    {
        [Tooltip(Langs.t_simulationInEditor)]
        public SimulationSettings Simulation = new SimulationSettings();

        [Serializable]
        public partial class SimulationSettings
        {
#if RU_YG2
            [HeaderYG("Данные окружения", 5)]
#else
            [HeaderYG("Environment Data", 5)]
#endif
            public YG2.Device device;
            public string language = "ru";

            [HeaderYG(Langs.advSimHeader, 5)]
#if RU_YG2
            [Tooltip("Симуляция interstitial рекламной в Unity Editor.")]
#else
            [Tooltip("Simulation of an interstitial advertising campaign in Unity Editor.")]
#endif
            public bool enableInterAdv = true;
            
            [Tooltip(Langs.t_advIntervalSimulation), Min(0)]
            public int advIntervalSimulation = 60;

            [Tooltip(Langs.t_advDurationAdv), Min(0)]
            public float durationAdv = 0.5f;

            [Tooltip(Langs.t_loadAdv), Min(0)]
            public float loadAdv = 0.0f;
#if UNITY_EDITOR
#if RU_YG2
            [Tooltip("Симулирование вызова ошибки при просмотре рекламы.")]
#else
            [Tooltip("Click the check mark to simulate an error call when viewing ads.")]
#endif
            public bool testFailAds;
#if RU_YG2
            [Tooltip("Симулирование паузы при смене фокуса игры.")]
#else
            [Tooltip("Simulating a pause when changing the focus of the game.")]
#endif
            public bool pauseOnFocusGame;
#endif
        }
    }
}
#endif