Add a number of small helper functions to Lua API

This commit is contained in:
Oliver Brakmann
2014-06-29 19:11:17 +02:00
parent d23707b5f7
commit 882f3f34c2
4 changed files with 68 additions and 7 deletions

View File

@@ -65,5 +65,8 @@ namespace OpenRA.Scripting
[Desc("Create a new WRange.")]
public WRange New(int r) { return new WRange(r); }
[Desc("Create a new WRange by cell distance")]
public WRange FromCells(int numCells) { return WRange.FromCells(numCells); }
}
}