| 1 |
using Godot; |
| 2 |
|
| 3 |
namespace Godot.SourceGenerators.Sample |
| 4 |
{ |
| 5 |
public partial class ExportedComplexStrings : Node |
| 6 |
{ |
| 7 |
[Export] |
| 8 |
private string _fieldInterpolated1 = $"The quick brown fox jumps over ({Engine.GetVersionInfo()})"; |
| 9 |
|
| 10 |
[Export] |
| 11 |
private string _fieldInterpolated2 = $"The quick brown fox jumps over ({Engine.GetVersionInfo()["major"],0:G}) the lazy dog."; |
| 12 |
|
| 13 |
[Export] |
| 14 |
private string _fieldInterpolated3 = $"{((int)Engine.GetVersionInfo()["major"]) * -1 * -1:G} the lazy dog."; |
| 15 |
|
| 16 |
[Export] |
| 17 |
private string _fieldInterpolated4 = $"{":::fff,,}<,<}},,}]"}"; |
| 18 |
|
| 19 |
[Export] |
| 20 |
public string PropertyInterpolated1 |
| 21 |
{ |
| 22 |
get; |
| 23 |
private set; |
| 24 |
} = $"The quick brown fox jumps over {GD.VarToStr($"the lazy {Engine.GetVersionInfo()} do")}g."; |
| 25 |
} |
| 26 |
} |