﻿using AsmodeeDigital.Common.Plugin.Manager.Scene;
using System;

namespace AsmodeeDigital.Common.Plugin.Tests.Mocks
{
    /// <summary>
    /// Mock of Scene Manager
    /// </summary>
    public class SceneManagerTest : ISceneManager
    {
        private string _sceneName = String.Empty;

        /// <summary>
        /// Do not really load a scene, but save scene name in memory
        /// </summary>
        /// <param name="sceneName"></param>
        public void LoadScene(string sceneName)
        {
            _sceneName = sceneName;
        }

        /// <summary>
        /// Check if the scene name is the same as the previous defined when LoadScene was called
        /// </summary>
        /// <param name="sceneName">Scene name to check</param>
        /// <returns>True if the las scene has the same name</returns>
        public bool IsCurrentScene(string sceneName)
        {
            return _sceneName == sceneName;
        }
    }
}
