Support map-defined AI in the lobby.

This commit is contained in:
Paul Chote
2016-03-12 21:59:04 +00:00
parent ab6a9597bb
commit d40bff3fd9
4 changed files with 25 additions and 19 deletions

View File

@@ -210,6 +210,9 @@ namespace OpenRA
Status = MapStatus.Unavailable;
}
// Note: multiple threads may try to access the value at the same time
// We rely on the thread-safety guarantees given by Lazy<T> to prevent race conitions.
// If you're thinking about replacing this, then you must be careful to keep this safe.
rules = Exts.Lazy(() =>
{
try