﻿using JLGames.RocketDriver.Actions.i18n;

namespace JLGames.RocketDriver.Editor.Windows.GettingStarted
{
    internal class SectionI18NValues
    {
        private string m_Title;
        private string m_Content;
        private string m_Button1;
        private string m_Button2;
        private string m_Page1;
        private string m_Page2;

        public string Title => m_Title;
        public string Content => m_Content;
        public string Button1 => m_Button1;
        public string Button2 => m_Button2;
        public string Page1 => m_Page1;
        public string Page2 => m_Page2;

        public void UpdateValues(II18NManager i18NManager, string baseNodePath)
        {
            m_Title = i18NManager.GetValue($"{baseNodePath}.title");
            m_Content = i18NManager.GetValue($"{baseNodePath}.content");
            m_Button1 = i18NManager.GetValue($"{baseNodePath}.button1");
            m_Button2 = i18NManager.GetValue($"{baseNodePath}.button2");
            m_Page1 = i18NManager.GetValue($"{baseNodePath}.page1");
            m_Page2 = i18NManager.GetValue($"{baseNodePath}.page2");
        }
    }
}