22 lines
623 B
C#
22 lines
623 B
C#
#nullable enable
|
|
namespace Barotrauma
|
|
{
|
|
public class ConcatLString : LocalizedString
|
|
{
|
|
private readonly LocalizedString left;
|
|
private readonly LocalizedString right;
|
|
|
|
public ConcatLString(LocalizedString l, LocalizedString r)
|
|
{
|
|
left = l; right = r;
|
|
}
|
|
|
|
// TODO: should this be && instead of ||?
|
|
public override bool Loaded => left.Loaded || right.Loaded;
|
|
public override void RetrieveValue()
|
|
{
|
|
cachedValue = (left.Value ?? string.Empty) + (right.Value ?? string.Empty);
|
|
UpdateLanguage();
|
|
}
|
|
}
|
|
} |