Fix Selectable style nits and description
Silence Travis
This commit is contained in:
@@ -8,12 +8,9 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
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 class SelectableInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public readonly int Priority = 10;
|
public readonly int Priority = 10;
|
||||||
@@ -32,11 +29,8 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
public readonly string Class = null;
|
public readonly string Class = null;
|
||||||
|
|
||||||
public readonly SelectableInfo Info;
|
|
||||||
|
|
||||||
public Selectable(Actor self, SelectableInfo info)
|
public Selectable(Actor self, SelectableInfo info)
|
||||||
{
|
{
|
||||||
Info = info;
|
|
||||||
Class = string.IsNullOrEmpty(info.Class) ? self.Info.Name : info.Class;
|
Class = string.IsNullOrEmpty(info.Class) ? self.Info.Name : info.Class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user