Added some trait [Desc()]s.

This commit is contained in:
Taryn Hill
2014-07-12 12:43:38 -05:00
parent a03d607878
commit da001385ae
35 changed files with 99 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
@@ -15,13 +15,19 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
[Desc("Draw a colored contrail behind this actor when they move.")]
class ContrailInfo : ITraitInfo, Requires<IBodyOrientationInfo>
{
[Desc("Position relative to body")]
public readonly WVec Offset = WVec.Zero;
[Desc("Measured in pixels.")]
public readonly int TrailLength = 25;
[Desc("RGB color of the contrail.")]
public readonly Color Color = Color.White;
[Desc("Use player remap color instead of a custom color?")]
public readonly bool UsePlayerColor = true;
public object Create(ActorInitializer init) { return new Contrail(init.self, this); }