예제 #1
0
        public InlineStringsPresenter(InlineStringsRepository inlineStringsRepository)
        {
            if (inlineStringsRepository == null)
            {
                throw new ArgumentNullException(nameof(InlineStringsRepository));
            }

            this._inlineStringsRepository = inlineStringsRepository;
        }
예제 #2
0
        public InlineStringsLocalizationProvider(InlineStringsRepository inlineStringsRepository)
        {
            if (inlineStringsRepository == null)
            {
                throw new NullReferenceException(nameof(InlineStringsRepository));
            }

            this._inlineStringsRepository = inlineStringsRepository;
        }
예제 #3
0
        public DefaultLocalizationExportUnit(DefaultLocalizationRepository defaultLocalizationRepository, EditorConfigRepository editorConfigRepository, InlineStringsRepository inlineStringsRepository)
        {
            if (defaultLocalizationRepository == null)
            {
                throw new NullReferenceException(nameof(DefaultLocalizationRepository));
            }

            if (editorConfigRepository == null)
            {
                throw new NullReferenceException(nameof(EditorConfigRepository));
            }

            if (inlineStringsRepository == null)
            {
                throw new NullReferenceException(nameof(InlineStringsRepository));
            }

            this._defaultLocalizationRepository = defaultLocalizationRepository;

            this._scenesLocalizationProvider        = new ScenesLocalizationProvider(editorConfigRepository.GetInternalConfig());
            this._assetsLocalizationProvider        = new AssetsLocalizationProvider();
            this._inlineStringsLocalizationProvider = new InlineStringsLocalizationProvider(inlineStringsRepository);
        }