ConstructionGL2 Part 2: Better guided steps and recipes. (#5103)
This commit is contained in:
committed by
GitHub
parent
5be8271907
commit
5a5006e4cf
@@ -34,6 +34,14 @@ namespace Content.Shared.Localizations
|
||||
loc.AddFunction(culture, "POWERWATTS", FormatPowerWatts);
|
||||
loc.AddFunction(culture, "POWERJOULES", FormatPowerJoules);
|
||||
loc.AddFunction(culture, "TOSTRING", args => FormatToString(culture, args));
|
||||
loc.AddFunction(culture, "LOC", FormatLoc);
|
||||
}
|
||||
|
||||
private static ILocValue FormatLoc(LocArgs args)
|
||||
{
|
||||
var id = ((LocValueString)args.Args[0]).Value;
|
||||
|
||||
return new LocValueString(Loc.GetString(id));
|
||||
}
|
||||
|
||||
private static ILocValue FormatToString(CultureInfo culture, LocArgs args)
|
||||
|
||||
Reference in New Issue
Block a user