render control group overlay

This commit is contained in:
Chris Forbes
2009-12-21 19:50:50 +13:00
parent d6be783ccf
commit 746cb90171
2 changed files with 19 additions and 1 deletions

View File

@@ -183,5 +183,12 @@ namespace OpenRa.Game
if (uog == null) return;
CombineSelection(controlGroups[group], mods.HasModifier(Modifiers.Shift), false);
}
public int? GetControlGroupForActor(Actor a)
{
return controlGroups.Where(g => g.Value.Contains(a))
.Select(g => (int?)g.Key)
.FirstOrDefault();
}
}
}