1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using ExIni;
- namespace XUnity.AutoTranslator.Plugin.Core
- {
- /// <summary>
- /// Interface representing the environment in which
- /// the plugin runs.
- ///
- /// This interface is not meant to be used by a translator.
- /// </summary>
- public interface IPluginEnvironment
- {
- /// <summary>
- /// Gets the path the plugin is located at.
- /// </summary>
- string PluginPath { get; }
- /// <summary>
- /// Gets or sets the path representing the root of the translations.
- /// </summary>
- string TranslationPath { get; }
- /// <summary>
- /// Gets or sets the path representing the config directory.
- /// </summary>
- string ConfigPath { get; }
- /// <summary>
- /// Gets the preferences file.
- /// </summary>
- IniFile Preferences { get; }
- /// <summary>
- /// Saves the preferences file.
- /// </summary>
- void SaveConfig();
- /// <summary>
- /// Gets a bool indicating whether the plugin environment allows experimental hooks by default.
- /// </summary>
- bool AllowRuntimeHooksByDefault { get; }
- }
- }
|