diff --git a/OpenRA.Mods.RA/Effects/RepairIndicator.cs b/OpenRA.Mods.Common/Effects/RepairIndicator.cs similarity index 95% rename from OpenRA.Mods.RA/Effects/RepairIndicator.cs rename to OpenRA.Mods.Common/Effects/RepairIndicator.cs index b7d4faa1a9..413b190001 100644 --- a/OpenRA.Mods.RA/Effects/RepairIndicator.cs +++ b/OpenRA.Mods.Common/Effects/RepairIndicator.cs @@ -12,9 +12,9 @@ using System.Collections.Generic; using System.Linq; using OpenRA.Effects; using OpenRA.Graphics; -using OpenRA.Mods.RA.Traits; +using OpenRA.Mods.Common.Traits; -namespace OpenRA.Mods.RA.Effects +namespace OpenRA.Mods.Common.Effects { class RepairIndicator : IEffect { diff --git a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj index 4fcb332309..b329e3b195 100644 --- a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj +++ b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj @@ -108,6 +108,7 @@ + @@ -124,6 +125,7 @@ + @@ -190,6 +192,7 @@ + @@ -232,6 +235,7 @@ + @@ -275,11 +279,15 @@ + + + + diff --git a/OpenRA.Mods.RA/Orders/RepairOrderGenerator.cs b/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs similarity index 95% rename from OpenRA.Mods.RA/Orders/RepairOrderGenerator.cs rename to OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs index ccb9a8d2c3..3d67e1a751 100644 --- a/OpenRA.Mods.RA/Orders/RepairOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/RepairOrderGenerator.cs @@ -11,11 +11,10 @@ using System.Collections.Generic; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; -using OpenRA.Mods.RA.Traits; +using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Orders +namespace OpenRA.Mods.Common.Orders { public class RepairOrderGenerator : IOrderGenerator { diff --git a/OpenRA.Mods.RA/Traits/Buildings/RepairableBuilding.cs b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs similarity index 96% rename from OpenRA.Mods.RA/Traits/Buildings/RepairableBuilding.cs rename to OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs index c12689a223..ab746356af 100644 --- a/OpenRA.Mods.RA/Traits/Buildings/RepairableBuilding.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs @@ -11,12 +11,10 @@ using System; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common; -using OpenRA.Mods.Common.Traits; -using OpenRA.Mods.RA.Effects; +using OpenRA.Mods.Common.Effects; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("Building can be repaired by the repair button.")] public class RepairableBuildingInfo : UpgradableTraitInfo, ITraitInfo, Requires diff --git a/OpenRA.Mods.RA/Player/AllyRepair.cs b/OpenRA.Mods.Common/Traits/Player/AllyRepair.cs similarity index 93% rename from OpenRA.Mods.RA/Player/AllyRepair.cs rename to OpenRA.Mods.Common/Traits/Player/AllyRepair.cs index 145e9ebeba..8f25af37e3 100644 --- a/OpenRA.Mods.RA/Player/AllyRepair.cs +++ b/OpenRA.Mods.Common/Traits/Player/AllyRepair.cs @@ -8,10 +8,9 @@ */ #endregion -using OpenRA.Mods.Common; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("Attach this to the player actor to allow building repair by team mates.")] class AllyRepairInfo : TraitInfo { } diff --git a/OpenRA.Mods.RA/Render/WithRepairAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs similarity index 95% rename from OpenRA.Mods.RA/Render/WithRepairAnimation.cs rename to OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs index bed8eedb0d..3436307a8c 100644 --- a/OpenRA.Mods.RA/Render/WithRepairAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithRepairAnimation.cs @@ -10,10 +10,9 @@ using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("Replaces the building animation when it repairs a unit.")] public class WithRepairAnimationInfo : ITraitInfo, Requires diff --git a/OpenRA.Mods.RA/Render/WithRepairOverlay.cs b/OpenRA.Mods.Common/Traits/Render/WithRepairOverlay.cs similarity index 97% rename from OpenRA.Mods.RA/Render/WithRepairOverlay.cs rename to OpenRA.Mods.Common/Traits/Render/WithRepairOverlay.cs index 10779f73b9..815fc275e7 100644 --- a/OpenRA.Mods.RA/Render/WithRepairOverlay.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithRepairOverlay.cs @@ -11,10 +11,9 @@ using System.Linq; using OpenRA.Effects; using OpenRA.Graphics; -using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("Displays an overlay when the building is being repaired by the player.")] public class WithRepairOverlayInfo : ITraitInfo, Requires, Requires diff --git a/OpenRA.Mods.RA/Repairable.cs b/OpenRA.Mods.Common/Traits/Repairable.cs similarity index 96% rename from OpenRA.Mods.RA/Repairable.cs rename to OpenRA.Mods.Common/Traits/Repairable.cs index 3e479e9064..8a6de4951e 100644 --- a/OpenRA.Mods.RA/Repairable.cs +++ b/OpenRA.Mods.Common/Traits/Repairable.cs @@ -14,11 +14,9 @@ using System.Linq; using OpenRA.Activities; using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Orders; -using OpenRA.Mods.Common.Traits; -using OpenRA.Mods.RA.Activities; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("This actor can be sent to a structure for repairs.")] class RepairableInfo : ITraitInfo, Requires diff --git a/OpenRA.Mods.RA/RepairableNear.cs b/OpenRA.Mods.Common/Traits/RepairableNear.cs similarity index 97% rename from OpenRA.Mods.RA/RepairableNear.cs rename to OpenRA.Mods.Common/Traits/RepairableNear.cs index 81640ab455..6beb94826d 100644 --- a/OpenRA.Mods.RA/RepairableNear.cs +++ b/OpenRA.Mods.Common/Traits/RepairableNear.cs @@ -13,10 +13,9 @@ using System.Drawing; using System.Linq; using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Orders; -using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.RA.Traits +namespace OpenRA.Mods.Common.Traits { class RepairableNearInfo : ITraitInfo, Requires { diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 4a37483d54..cf7ecbe72b 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -82,7 +82,6 @@ - @@ -132,7 +131,6 @@ - @@ -145,7 +143,6 @@ - @@ -162,8 +159,6 @@ - - @@ -178,7 +173,6 @@ - @@ -252,8 +246,6 @@ - - diff --git a/OpenRA.Mods.RA/Scripting/Properties/RepairableBuildingProperties.cs b/OpenRA.Mods.RA/Scripting/Properties/RepairableBuildingProperties.cs index de7d80eb82..2ef39ee4af 100644 --- a/OpenRA.Mods.RA/Scripting/Properties/RepairableBuildingProperties.cs +++ b/OpenRA.Mods.RA/Scripting/Properties/RepairableBuildingProperties.cs @@ -8,7 +8,7 @@ */ #endregion -using OpenRA.Mods.RA.Traits; +using OpenRA.Mods.Common.Traits; using OpenRA.Scripting; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Widgets/Logic/OrderButtonsChromeLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/OrderButtonsChromeLogic.cs index c35e97923c..cafbc5f1ed 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/OrderButtonsChromeLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/OrderButtonsChromeLogic.cs @@ -10,10 +10,10 @@ using System; using System.Linq; +using OpenRA.Mods.Common.Orders; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Widgets; using OpenRA.Mods.RA.Orders; -using OpenRA.Traits; using OpenRA.Widgets; namespace OpenRA.Mods.RA.Widgets.Logic