Client LuaCsForBarotrauma
JoinLString.cs
1 #nullable enable
2 using System.Collections.Generic;
3 using System.Linq;
4 
5 namespace Barotrauma
6 {
7  public class JoinLString : LocalizedString
8  {
9  private readonly IEnumerable<LocalizedString> subStrs;
10  private readonly string separator;
11 
12  public JoinLString(string separator, IEnumerable<LocalizedString> subStrs)
13  {
14  this.separator = separator; this.subStrs = subStrs;
15  }
16 
17  public override bool Loaded => subStrs.All(s => s.Loaded);
18  public override void RetrieveValue()
19  {
20  cachedValue = string.Join(separator, subStrs);
22  }
23  }
24 }
JoinLString(string separator, IEnumerable< LocalizedString > subStrs)
Definition: JoinLString.cs:12
override bool Loaded
Definition: JoinLString.cs:17
override void RetrieveValue()
Definition: JoinLString.cs:18