Added CnC: gdi05b

This commit is contained in:
Moshe Schmidt
2015-04-13 22:31:51 +02:00
parent 70c9bca847
commit 7d6f367d84
8 changed files with 1004 additions and 0 deletions

View File

@@ -59,6 +59,12 @@ namespace OpenRA.Mods.Common.Scripting
return true;
}
[Desc("Returns the first n values from a collection.")]
public LuaValue[] Take(int n, LuaValue[] source)
{
return source.Take(n).ToArray();
}
[Desc("Skips over the first numElements members of a table and return the rest.")]
public LuaTable Skip(LuaTable table, int numElements)
{