From ab25e26312850e262de0698f2d3bfb965f3de35c Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 15 Feb 2016 20:55:29 +0000 Subject: [PATCH] Add method to check if IGlobalModData exists. --- OpenRA.Game/Manifest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Game/Manifest.cs b/OpenRA.Game/Manifest.cs index 536ffb794c..edc5c40276 100644 --- a/OpenRA.Game/Manifest.cs +++ b/OpenRA.Game/Manifest.cs @@ -169,6 +169,11 @@ namespace OpenRA return new ReadOnlyDictionary(inner); } + public bool Contains() where T : IGlobalModData + { + return modules.Contains(); + } + public T Get() where T : IGlobalModData { var module = modules.GetOrDefault();