Add descriptions to the SelectionSize traits.

This commit is contained in:
Matthias Mailänder
2015-09-12 10:12:55 +02:00
parent c79f5a20a5
commit 7845577553
2 changed files with 2 additions and 3 deletions

View File

@@ -13,9 +13,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Special case trait for unselectable actors that need to define targetable area bounds",
"for special cases like C4, engineer repair and tooltips.",
"Examples: bridge huts and crates.")]
[Desc("Special case trait for actors that need to define targetable area and screen map bounds manually.")]
public class CustomSelectionSizeInfo : ITraitInfo
{
[FieldLoader.Require]

View File

@@ -13,6 +13,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Automatically calculates the targetable area and screen map boundaries from the sprite size.")]
public class AutoSelectionSizeInfo : ITraitInfo, Requires<RenderSpritesInfo>
{
public object Create(ActorInitializer init) { return new AutoSelectionSize(this); }