From 18805779a8f1ea6405189b19af2fc3bcc4b5edec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:29:50 +0200 Subject: [PATCH 1/6] document RejectsOrders --- OpenRA.Game/Traits/RejectsOrders.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Game/Traits/RejectsOrders.cs b/OpenRA.Game/Traits/RejectsOrders.cs index 566f3373c6..8ce0ccb3b3 100644 --- a/OpenRA.Game/Traits/RejectsOrders.cs +++ b/OpenRA.Game/Traits/RejectsOrders.cs @@ -12,8 +12,10 @@ using System.Linq; namespace OpenRA.Traits { + [Desc("Can be used to make a unit partly uncontrollable by the player.")] public class RejectsOrdersInfo : ITraitInfo { + [Desc("Possible values include Attack, AttackMove, Guard, Move.")] public readonly string[] Except = { }; public object Create(ActorInitializer init) { return new RejectsOrders(this); } From 1c719cb34f8e371fb4130ae264af5eb71360b9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:29:59 +0200 Subject: [PATCH 2/6] document D2kResourceLayer --- OpenRA.Mods.D2k/D2kResourceLayer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.D2k/D2kResourceLayer.cs b/OpenRA.Mods.D2k/D2kResourceLayer.cs index 01cf32cb32..48984f5b4a 100644 --- a/OpenRA.Mods.D2k/D2kResourceLayer.cs +++ b/OpenRA.Mods.D2k/D2kResourceLayer.cs @@ -16,6 +16,7 @@ namespace OpenRA.Traits { public class D2kResourceLayerInfo : TraitInfo { } + [Desc("Used to render spice with round borders.")] public class D2kResourceLayer : ResourceLayer { [Flags] enum ClearSides : byte From cf3f79bf29b7189b86f1381a4f45e54e9ddb5ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:30:09 +0200 Subject: [PATCH 3/6] document AttackWander --- OpenRA.Mods.RA/Attack/AttackWander.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Attack/AttackWander.cs b/OpenRA.Mods.RA/Attack/AttackWander.cs index 6b94bb2f8b..347d61cc3a 100644 --- a/OpenRA.Mods.RA/Attack/AttackWander.cs +++ b/OpenRA.Mods.RA/Attack/AttackWander.cs @@ -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, @@ -12,6 +12,8 @@ using OpenRA.Traits; namespace OpenRA.Mods.RA { + [Desc("Will AttackMove to a random location within MoveRadius when idle.", + "This conflicts with player orders and should only be added to animal creeps.")] class AttackWanderInfo : ITraitInfo { public readonly int MoveRadius = 4; From d88fc7c3f21cef864af6b3dcc93444e43f4f0221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:30:22 +0200 Subject: [PATCH 4/6] document CanPowerDown --- OpenRA.Mods.RA/Buildings/CanPowerDown.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.RA/Buildings/CanPowerDown.cs b/OpenRA.Mods.RA/Buildings/CanPowerDown.cs index 2932011adb..87d844e200 100755 --- a/OpenRA.Mods.RA/Buildings/CanPowerDown.cs +++ b/OpenRA.Mods.RA/Buildings/CanPowerDown.cs @@ -13,6 +13,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.RA.Buildings { + [Desc("The player can disable the power individually on this actor.")] public class CanPowerDownInfo : ITraitInfo { public object Create(ActorInitializer init) { return new CanPowerDown(init); } From 8ff5d9ef9bdac8bd509bbaed19d392d9e50fe29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:30:30 +0200 Subject: [PATCH 5/6] document Guard --- OpenRA.Mods.RA/Guard.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Guard.cs b/OpenRA.Mods.RA/Guard.cs index 5472a61956..d7f4fdede1 100644 --- a/OpenRA.Mods.RA/Guard.cs +++ b/OpenRA.Mods.RA/Guard.cs @@ -1,6 +1,6 @@ #region Copyright & License Information /* - * Copyright 2007-2013 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, @@ -18,6 +18,7 @@ namespace OpenRA.Mods.RA { class GuardInfo : TraitInfo { } + [Desc("The player can give this unit the order to follow and protect friendly units with the Guardable trait.")] class Guard : IResolveOrder, IOrderVoice { public void ResolveOrder(Actor self, Order order) From ef2e02d00863ce35ac4cd3c56d40c4968475975c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 18 Jun 2014 12:30:40 +0200 Subject: [PATCH 6/6] document ScaredyCat --- OpenRA.Mods.RA/ScaredyCat.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/ScaredyCat.cs b/OpenRA.Mods.RA/ScaredyCat.cs index aafaa535b7..01904e1de2 100644 --- a/OpenRA.Mods.RA/ScaredyCat.cs +++ b/OpenRA.Mods.RA/ScaredyCat.cs @@ -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, @@ -13,6 +13,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.RA { + [Desc("Makes the unit automatically run around when taking damage.")] class ScaredyCatInfo : ITraitInfo { public readonly int PanicLength = 25 * 10;