From c19d096d926e9c9d5766414b5e58e7f068061df4 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Mon, 15 Dec 2014 00:02:17 +0100 Subject: [PATCH] Bring Mods.D2k in line with our new folder/namespace structure --- .../{AutoCarryall => Activities}/CarryUnit.cs | 3 ++- .../{ => Activities}/SwallowActor.cs | 3 ++- OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj | 26 +++++++++---------- OpenRA.Mods.D2k/{ => Traits}/AttackSwallow.cs | 3 ++- .../{AutoCarryall => Traits}/AutoCarryall.cs | 3 ++- .../{AutoCarryall => Traits}/Carryable.cs | 3 ++- .../{ => Traits}/TemporaryOwnerManager.cs | 2 +- .../{ => Traits/World}/WormManager.cs | 2 +- .../{ => Warheads}/ChangeOwnerWarhead.cs | 3 ++- 9 files changed, 27 insertions(+), 21 deletions(-) rename OpenRA.Mods.D2k/{AutoCarryall => Activities}/CarryUnit.cs (98%) rename OpenRA.Mods.D2k/{ => Activities}/SwallowActor.cs (98%) rename OpenRA.Mods.D2k/{ => Traits}/AttackSwallow.cs (95%) rename OpenRA.Mods.D2k/{AutoCarryall => Traits}/AutoCarryall.cs (98%) rename OpenRA.Mods.D2k/{AutoCarryall => Traits}/Carryable.cs (98%) rename OpenRA.Mods.D2k/{ => Traits}/TemporaryOwnerManager.cs (98%) rename OpenRA.Mods.D2k/{ => Traits/World}/WormManager.cs (99%) rename OpenRA.Mods.D2k/{ => Warheads}/ChangeOwnerWarhead.cs (95%) diff --git a/OpenRA.Mods.D2k/AutoCarryall/CarryUnit.cs b/OpenRA.Mods.D2k/Activities/CarryUnit.cs similarity index 98% rename from OpenRA.Mods.D2k/AutoCarryall/CarryUnit.cs rename to OpenRA.Mods.D2k/Activities/CarryUnit.cs index f01193aa85..0cc099616b 100644 --- a/OpenRA.Mods.D2k/AutoCarryall/CarryUnit.cs +++ b/OpenRA.Mods.D2k/Activities/CarryUnit.cs @@ -11,12 +11,13 @@ using System; using System.Drawing; using System.Linq; using OpenRA.Activities; +using OpenRA.Mods.D2k.Traits; using OpenRA.Mods.RA; using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Activities { public class CarryUnit : Activity { diff --git a/OpenRA.Mods.D2k/SwallowActor.cs b/OpenRA.Mods.D2k/Activities/SwallowActor.cs similarity index 98% rename from OpenRA.Mods.D2k/SwallowActor.cs rename to OpenRA.Mods.D2k/Activities/SwallowActor.cs index 5d6d8c05cd..e9491a27bd 100644 --- a/OpenRA.Mods.D2k/SwallowActor.cs +++ b/OpenRA.Mods.D2k/Activities/SwallowActor.cs @@ -14,10 +14,11 @@ using OpenRA.Activities; using OpenRA.GameRules; using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; +using OpenRA.Mods.D2k.Traits; using OpenRA.Mods.RA.Move; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Activities { enum AttackState { Burrowed, EmergingAboveGround, ReturningUnderground } diff --git a/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj b/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj index 8889a12c7d..714ab3766e 100644 --- a/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj +++ b/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj @@ -68,32 +68,32 @@ - - + + + + + - + + - - + + + + + + - - - - - - - - diff --git a/OpenRA.Mods.D2k/AttackSwallow.cs b/OpenRA.Mods.D2k/Traits/AttackSwallow.cs similarity index 95% rename from OpenRA.Mods.D2k/AttackSwallow.cs rename to OpenRA.Mods.D2k/Traits/AttackSwallow.cs index 0732f0fa9a..3293cae7d5 100644 --- a/OpenRA.Mods.D2k/AttackSwallow.cs +++ b/OpenRA.Mods.D2k/Traits/AttackSwallow.cs @@ -8,10 +8,11 @@ */ #endregion +using OpenRA.Mods.D2k.Activities; using OpenRA.Mods.RA; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Traits { [Desc("Sandworms use this attack model.")] class AttackSwallowInfo : AttackFrontalInfo diff --git a/OpenRA.Mods.D2k/AutoCarryall/AutoCarryall.cs b/OpenRA.Mods.D2k/Traits/AutoCarryall.cs similarity index 98% rename from OpenRA.Mods.D2k/AutoCarryall/AutoCarryall.cs rename to OpenRA.Mods.D2k/Traits/AutoCarryall.cs index 6d47e5d8b4..42c931daa6 100644 --- a/OpenRA.Mods.D2k/AutoCarryall/AutoCarryall.cs +++ b/OpenRA.Mods.D2k/Traits/AutoCarryall.cs @@ -12,12 +12,13 @@ using System.Collections.Generic; using System.Linq; using OpenRA.Graphics; using OpenRA.Mods.Common.Traits; +using OpenRA.Mods.D2k.Activities; using OpenRA.Mods.RA; using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Traits { [Desc("Automatically transports harvesters with the Carryable trait between resource fields and refineries")] public class AutoCarryallInfo : ITraitInfo, Requires diff --git a/OpenRA.Mods.D2k/AutoCarryall/Carryable.cs b/OpenRA.Mods.D2k/Traits/Carryable.cs similarity index 98% rename from OpenRA.Mods.D2k/AutoCarryall/Carryable.cs rename to OpenRA.Mods.D2k/Traits/Carryable.cs index 46ed0cb9bf..85c555f853 100644 --- a/OpenRA.Mods.D2k/AutoCarryall/Carryable.cs +++ b/OpenRA.Mods.D2k/Traits/Carryable.cs @@ -12,9 +12,10 @@ using System.Linq; using OpenRA.Activities; using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; +using OpenRA.Mods.D2k.Activities; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Traits { [Desc("Can be carried by units with the trait `AutoCarryall`.")] public class CarryableInfo : ITraitInfo diff --git a/OpenRA.Mods.D2k/TemporaryOwnerManager.cs b/OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs similarity index 98% rename from OpenRA.Mods.D2k/TemporaryOwnerManager.cs rename to OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs index 725f21ca73..91475bc633 100644 --- a/OpenRA.Mods.D2k/TemporaryOwnerManager.cs +++ b/OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs @@ -11,7 +11,7 @@ using System.Drawing; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Traits { [Desc("Interacts with the ChangeOwner warhead.", "Displays a bar how long this actor is affected and reverts back to the old owner on temporary changes.")] diff --git a/OpenRA.Mods.D2k/WormManager.cs b/OpenRA.Mods.D2k/Traits/World/WormManager.cs similarity index 99% rename from OpenRA.Mods.D2k/WormManager.cs rename to OpenRA.Mods.D2k/Traits/World/WormManager.cs index deb74aca5c..40ba93871c 100644 --- a/OpenRA.Mods.D2k/WormManager.cs +++ b/OpenRA.Mods.D2k/Traits/World/WormManager.cs @@ -16,7 +16,7 @@ using OpenRA.Mods.Common.Traits; using OpenRA.Primitives; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Traits { [Desc("Controls the spawning of sandworms. Attach this to the world actor.")] class WormManagerInfo : ITraitInfo diff --git a/OpenRA.Mods.D2k/ChangeOwnerWarhead.cs b/OpenRA.Mods.D2k/Warheads/ChangeOwnerWarhead.cs similarity index 95% rename from OpenRA.Mods.D2k/ChangeOwnerWarhead.cs rename to OpenRA.Mods.D2k/Warheads/ChangeOwnerWarhead.cs index b17fea5f5c..3be8ed3fef 100644 --- a/OpenRA.Mods.D2k/ChangeOwnerWarhead.cs +++ b/OpenRA.Mods.D2k/Warheads/ChangeOwnerWarhead.cs @@ -10,9 +10,10 @@ using System.Collections.Generic; using OpenRA.GameRules; +using OpenRA.Mods.D2k.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.D2k +namespace OpenRA.Mods.D2k.Warheads { [Desc("Interacts with the DynamicOwnerChange trait.")] public class ChangeOwnerWarhead : Warhead