This commit is contained in:
meinname
2019-04-12 12:59:22 +02:00
5 changed files with 59 additions and 1 deletions
+7
View File
@@ -46,6 +46,9 @@ namespace RuriLib
/// <summary>Creates an empty list variable.</summary>
Create,
/// <summary>Calculates the length of a list.</summary>
Length,
/// <summary>Joins a list into a single string, separating the elements with a separator.</summary>
Join,
@@ -409,6 +412,10 @@ namespace RuriLib
data.Variables.Set(new CVar(variableName, new List<string>(), isCapture));
break;
case ListAction.Length:
data.Variables.Set(new CVar(variableName, list.Count().ToString(), isCapture));
break;
case ListAction.Join:
data.Variables.Set(new CVar(variableName, string.Join(separator, list), isCapture));
break;