//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
using System;
using System.Runtime.CompilerServices;
namespace BansheeEngine
{
/** @addtogroup GUI
* @{
*/
public partial class LocString
{
///
/// Converts a normal string into a localized string by using the normal string as the identifier.
///
/// Localized string identifier.
/// Localized string with the provided identifier, from the default string table.
public static implicit operator LocString(string identifier)
{
return new LocString(identifier);
}
///
/// Retrieves localized text for the active language from the localized string.
///
/// Localized string to retrieve the text from.
/// Translated text for the currently active language.
public static explicit operator string(LocString text)
{
return Internal_getValue(text.mCachedPtr);
}
}
/** @} */
}