Add a IAutoSelctionSizeInfo trait interface

This commit is contained in:
abcdefg30
2017-04-19 13:43:29 +02:00
committed by reaperrr
parent 767fd5438e
commit 2a3139dc39
6 changed files with 8 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Special case trait for actors that need to define targetable area and screen map bounds manually.")]
public class CustomSelectionSizeInfo : ITraitInfo
public class CustomSelectionSizeInfo : ITraitInfo, IAutoSelectionSizeInfo
{
[FieldLoader.Require]
public readonly int[] CustomBounds = null;