Fix Selectable style nits and description

Silence Travis
This commit is contained in:
reaperrr
2015-06-17 21:44:59 +02:00
parent f2d8e32b01
commit f5771571c1

View File

@@ -8,12 +8,9 @@
*/
#endregion
using System.Collections.Generic;
using System.Linq;
namespace OpenRA.Traits
{
[Desc("This actor is selectable. Defines bounds of selectable area and selection priority.")]
[Desc("This actor is selectable. Defines bounds of selectable area, selection class and selection priority.")]
public class SelectableInfo : ITraitInfo
{
public readonly int Priority = 10;
@@ -32,11 +29,8 @@ namespace OpenRA.Traits
{
public readonly string Class = null;
public readonly SelectableInfo Info;
public Selectable(Actor self, SelectableInfo info)
{
Info = info;
Class = string.IsNullOrEmpty(info.Class) ? self.Info.Name : info.Class;
}
}