Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/Text/LocalizedString/UpperLString.cs
2022-02-26 02:43:01 +09:00

25 lines
574 B
C#

#nullable enable
namespace Barotrauma
{
public class UpperLString : LocalizedString
{
private readonly LocalizedString nestedStr;
public UpperLString(LocalizedString nestedStr)
{
this.nestedStr = nestedStr;
}
public override bool Loaded => nestedStr.Loaded;
public override void RetrieveValue()
{
cachedValue = nestedStr.Value.ToUpper();
UpdateLanguage();
}
public override LocalizedString ToUpper()
{
return this;
}
}
}