Merge pull request #11316 from obrakmann/mp-allies02

Add Scott's Allies02 multiplayer mission as "Evacuation"
This commit is contained in:
Matthias Mailänder
2016-05-30 19:49:07 +02:00
14 changed files with 2422 additions and 3 deletions

View File

@@ -93,6 +93,12 @@ namespace OpenRA.Mods.Common.Scripting
return collection.Random(Context.World.SharedRandom).CopyReference();
}
[Desc("Returns the collection in a random order.")]
public LuaValue[] Shuffle(LuaValue[] collection)
{
return collection.Shuffle(Context.World.SharedRandom).ToArray();
}
[Desc("Expands the given footprint one step along the coordinate axes, and (if requested) diagonals.")]
public CPos[] ExpandFootprint(CPos[] footprint, bool allowDiagonal)
{