Ejemplo n.º 1
0
 /// <summary>
 /// Easy to use configuration value extractor
 /// </summary>
 /// <typeparam name="T">The configuration value type</typeparam>
 /// <param name="key">The key of the configuration value</param>
 /// <returns>The configuration value with specified type</returns>
 public T Configure <T>(string key) => PointBlankPlugin.GetInstance(this).Configure <T>(key);
Ejemplo n.º 2
0
 /// <summary>
 /// Translates a key and data to text depending on the translation
 /// </summary>
 /// <param name="key">The key of the translation</param>
 /// <param name="data">The data to modify the translation</param>
 /// <returns>The translated text</returns>
 public string Translate(string key, params object[] data) => PointBlankPlugin.GetInstance(this).Translate(key, data);