Client LuaCsForBarotrauma
ConcatLString.cs
1
#nullable enable
2
namespace
Barotrauma
3
{
4
public
class
ConcatLString
:
LocalizedString
5
{
6
private
readonly
LocalizedString
left;
7
private
readonly
LocalizedString
right;
8
9
public
ConcatLString
(
LocalizedString
l,
LocalizedString
r)
10
{
11
left = l; right = r;
12
}
13
14
// TODO: should this be && instead of ||?
15
public
override
bool
Loaded
=> left.Loaded || right.Loaded;
16
public
override
void
RetrieveValue
()
17
{
18
cachedValue
= (left.Value ??
string
.Empty) + (right.Value ??
string
.Empty);
19
UpdateLanguage
();
20
}
21
}
22
}
Barotrauma.ConcatLString
Definition:
ConcatLString.cs:5
Barotrauma.ConcatLString.RetrieveValue
override void RetrieveValue()
Definition:
ConcatLString.cs:16
Barotrauma.ConcatLString.ConcatLString
ConcatLString(LocalizedString l, LocalizedString r)
Definition:
ConcatLString.cs:9
Barotrauma.ConcatLString.Loaded
override bool Loaded
Definition:
ConcatLString.cs:15
Barotrauma.LocalizedString
Definition:
LocalizedString.cs:8
Barotrauma.LocalizedString.cachedValue
string cachedValue
Definition:
LocalizedString.cs:19
Barotrauma.LocalizedString.UpdateLanguage
void UpdateLanguage()
Definition:
LocalizedString.cs:33
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Text
LocalizedString
ConcatLString.cs
Generated by
1.9.1