Improved GetText function

Glad I moved to the dev branch because I wasn't expecting this to be a breaking change.
This commit is contained in:
Tony Bark 2024-04-09 09:47:13 -04:00
parent 488c45620f
commit 10a9958065
5 changed files with 62 additions and 91 deletions

View file

@ -4,16 +4,16 @@ namespace CSTNet;
public interface IUIText
{
/// <summary>
/// The base directory for the language files.
/// </summary>
string[] BasePath { get; set; }
/// <summary>
/// The base directory for the language files.
/// </summary>
string BasePath { get; set; }
/// <summary>
/// Get the text for the given id and key.
/// </summary>
/// <param name="id">The id of the text.</param>
/// <param name="key">The key of the text.</param>
/// <returns>The text for the given id and key.</returns>
string GetText(int id, int key);
/// <summary>
/// Get the text for the given id and key.
/// </summary>
/// <param name="id">The id of the text.</param>
/// <param name="key">The key of the text.</param>
/// <returns>The text for the given id and key.</returns>
string GetText(int id, int key);
}