From 2d7c1a339434033068640bb64ad376bde2034d8c Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 18 Dec 2014 22:14:47 +0100 Subject: [PATCH] Rename CommonTraitsInterfaces to TraitsInterfaces, move to Traits namespace --- OpenRA.Mods.Common/Commands/ChatCommands.cs | 1 + OpenRA.Mods.Common/OpenRA.Mods.Common.csproj | 2 +- OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 1 - OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs | 1 - .../{CommonTraitsInterfaces.cs => TraitsInterfaces.cs} | 2 +- OpenRA.Mods.D2k/Activities/SwallowActor.cs | 1 - OpenRA.Mods.D2k/Traits/Carryable.cs | 1 - OpenRA.Mods.D2k/Traits/Render/WithCrumbleOverlay.cs | 1 - OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs | 1 - OpenRA.Mods.RA/AI/HackyAI.cs | 1 - OpenRA.Mods.RA/Activities/DeliverResources.cs | 2 +- OpenRA.Mods.RA/Activities/FindResources.cs | 1 - OpenRA.Mods.RA/Buildings/Building.cs | 1 - OpenRA.Mods.RA/Buildings/RepairableBuilding.cs | 1 - OpenRA.Mods.RA/GainsStatUpgrades.cs | 2 +- OpenRA.Mods.RA/Orders/PlaceBuildingOrderGenerator.cs | 1 - OpenRA.Mods.RA/Player/ProductionQueue.cs | 1 - OpenRA.Mods.RA/Render/RenderHarvester.cs | 1 - OpenRA.Mods.RA/Render/WithHarvestAnimation.cs | 1 - OpenRA.Mods.RA/Repairable.cs | 1 - OpenRA.Mods.RA/SupportPowers/SupportPowerManager.cs | 1 - OpenRA.Mods.RA/Traits/Air/Aircraft.cs | 2 +- OpenRA.Mods.RA/Traits/Harvester.cs | 1 - OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs | 2 +- OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs | 1 - OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs | 1 - OpenRA.Mods.TS/Traits/Render/RenderVoxels.cs | 4 ++-- 27 files changed, 9 insertions(+), 27 deletions(-) rename OpenRA.Mods.Common/{CommonTraitsInterfaces.cs => TraitsInterfaces.cs} (97%) diff --git a/OpenRA.Mods.Common/Commands/ChatCommands.cs b/OpenRA.Mods.Common/Commands/ChatCommands.cs index d6d5a189bd..5ac7c06813 100644 --- a/OpenRA.Mods.Common/Commands/ChatCommands.cs +++ b/OpenRA.Mods.Common/Commands/ChatCommands.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Linq; +using OpenRA.Mods.Common.Traits; using OpenRA.Traits; namespace OpenRA.Mods.Common.Commands diff --git a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj index b3e0b7bb02..58c3c28710 100644 --- a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj +++ b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj @@ -51,7 +51,6 @@ - @@ -109,6 +108,7 @@ + diff --git a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs index 027d328ba4..6d6fbcc975 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs @@ -13,7 +13,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Network; using OpenRA.Server; diff --git a/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs b/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs index 69c3249fe1..dc73c7cf5c 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbySettingsNotification.cs @@ -9,7 +9,6 @@ #endregion using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Network; using OpenRA.Server; diff --git a/OpenRA.Mods.Common/CommonTraitsInterfaces.cs b/OpenRA.Mods.Common/TraitsInterfaces.cs similarity index 97% rename from OpenRA.Mods.Common/CommonTraitsInterfaces.cs rename to OpenRA.Mods.Common/TraitsInterfaces.cs index 7c2a18dac9..37496a405a 100644 --- a/OpenRA.Mods.Common/CommonTraitsInterfaces.cs +++ b/OpenRA.Mods.Common/TraitsInterfaces.cs @@ -14,7 +14,7 @@ using OpenRA.Mods.Common.Graphics; using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.Common +namespace OpenRA.Mods.Common.Traits { public interface INotifyResourceClaimLost { diff --git a/OpenRA.Mods.D2k/Activities/SwallowActor.cs b/OpenRA.Mods.D2k/Activities/SwallowActor.cs index e9491a27bd..84fb5bde0f 100644 --- a/OpenRA.Mods.D2k/Activities/SwallowActor.cs +++ b/OpenRA.Mods.D2k/Activities/SwallowActor.cs @@ -12,7 +12,6 @@ using System.Drawing; using System.Linq; 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; diff --git a/OpenRA.Mods.D2k/Traits/Carryable.cs b/OpenRA.Mods.D2k/Traits/Carryable.cs index 85c555f853..ba9b2e56ad 100644 --- a/OpenRA.Mods.D2k/Traits/Carryable.cs +++ b/OpenRA.Mods.D2k/Traits/Carryable.cs @@ -10,7 +10,6 @@ using System; using System.Linq; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.D2k.Activities; using OpenRA.Traits; diff --git a/OpenRA.Mods.D2k/Traits/Render/WithCrumbleOverlay.cs b/OpenRA.Mods.D2k/Traits/Render/WithCrumbleOverlay.cs index 735976a7c6..c66e75ec4f 100644 --- a/OpenRA.Mods.D2k/Traits/Render/WithCrumbleOverlay.cs +++ b/OpenRA.Mods.D2k/Traits/Render/WithCrumbleOverlay.cs @@ -9,7 +9,6 @@ #endregion using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA; using OpenRA.Traits; diff --git a/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs b/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs index fa35568f0a..1103afdfd0 100644 --- a/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs +++ b/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs @@ -13,7 +13,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA; using OpenRA.Mods.RA.Buildings; diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index 9540e623bc..a0504ac662 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -12,7 +12,6 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Buildings; diff --git a/OpenRA.Mods.RA/Activities/DeliverResources.cs b/OpenRA.Mods.RA/Activities/DeliverResources.cs index 02733b22b6..199f949359 100755 --- a/OpenRA.Mods.RA/Activities/DeliverResources.cs +++ b/OpenRA.Mods.RA/Activities/DeliverResources.cs @@ -10,7 +10,7 @@ using System.Drawing; using OpenRA.Activities; -using OpenRA.Mods.Common; +using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Traits; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Activities/FindResources.cs b/OpenRA.Mods.RA/Activities/FindResources.cs index c1210da65a..cda984495b 100755 --- a/OpenRA.Mods.RA/Activities/FindResources.cs +++ b/OpenRA.Mods.RA/Activities/FindResources.cs @@ -13,7 +13,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Move; using OpenRA.Mods.RA.Traits; diff --git a/OpenRA.Mods.RA/Buildings/Building.cs b/OpenRA.Mods.RA/Buildings/Building.cs index bb00c26577..80b473c5be 100644 --- a/OpenRA.Mods.RA/Buildings/Building.cs +++ b/OpenRA.Mods.RA/Buildings/Building.cs @@ -11,7 +11,6 @@ using System; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Render; using OpenRA.Primitives; diff --git a/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs b/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs index d93256bc54..16f5dced7e 100755 --- a/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs +++ b/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs @@ -12,7 +12,6 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Effects; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/GainsStatUpgrades.cs b/OpenRA.Mods.RA/GainsStatUpgrades.cs index d6e8b8279d..824847cefc 100644 --- a/OpenRA.Mods.RA/GainsStatUpgrades.cs +++ b/OpenRA.Mods.RA/GainsStatUpgrades.cs @@ -11,7 +11,7 @@ using System; using System.Collections.Generic; using OpenRA.GameRules; -using OpenRA.Mods.Common; +using OpenRA.Mods.Common.Traits; using OpenRA.Traits; namespace OpenRA.Mods.RA diff --git a/OpenRA.Mods.RA/Orders/PlaceBuildingOrderGenerator.cs b/OpenRA.Mods.RA/Orders/PlaceBuildingOrderGenerator.cs index 595df40712..f2b247cf4a 100644 --- a/OpenRA.Mods.RA/Orders/PlaceBuildingOrderGenerator.cs +++ b/OpenRA.Mods.RA/Orders/PlaceBuildingOrderGenerator.cs @@ -12,7 +12,6 @@ using System; using System.Collections.Generic; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Graphics; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Buildings; diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index f9157e605b..ac9a6bc216 100644 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -11,7 +11,6 @@ using System; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Render/RenderHarvester.cs b/OpenRA.Mods.RA/Render/RenderHarvester.cs index 604b662115..36efb82cf8 100644 --- a/OpenRA.Mods.RA/Render/RenderHarvester.cs +++ b/OpenRA.Mods.RA/Render/RenderHarvester.cs @@ -10,7 +10,6 @@ using OpenRA.Activities; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Traits; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Render/WithHarvestAnimation.cs b/OpenRA.Mods.RA/Render/WithHarvestAnimation.cs index 215ad09b10..264d2c25d3 100644 --- a/OpenRA.Mods.RA/Render/WithHarvestAnimation.cs +++ b/OpenRA.Mods.RA/Render/WithHarvestAnimation.cs @@ -10,7 +10,6 @@ using OpenRA.Graphics; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Repairable.cs b/OpenRA.Mods.RA/Repairable.cs index df91774e98..44f8bab03d 100644 --- a/OpenRA.Mods.RA/Repairable.cs +++ b/OpenRA.Mods.RA/Repairable.cs @@ -12,7 +12,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Orders; using OpenRA.Mods.Common.Traits; diff --git a/OpenRA.Mods.RA/SupportPowers/SupportPowerManager.cs b/OpenRA.Mods.RA/SupportPowers/SupportPowerManager.cs index 4aebacaf60..e12c3ef08a 100644 --- a/OpenRA.Mods.RA/SupportPowers/SupportPowerManager.cs +++ b/OpenRA.Mods.RA/SupportPowers/SupportPowerManager.cs @@ -12,7 +12,6 @@ using System; using System.Collections.Generic; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Traits/Air/Aircraft.cs b/OpenRA.Mods.RA/Traits/Air/Aircraft.cs index 8b76e72a61..b1b583a94c 100644 --- a/OpenRA.Mods.RA/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.RA/Traits/Air/Aircraft.cs @@ -12,8 +12,8 @@ using System; using System.Collections.Generic; using System.Linq; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Orders; +using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA; using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Buildings; diff --git a/OpenRA.Mods.RA/Traits/Harvester.cs b/OpenRA.Mods.RA/Traits/Harvester.cs index b701eda994..5aa4214626 100644 --- a/OpenRA.Mods.RA/Traits/Harvester.cs +++ b/OpenRA.Mods.RA/Traits/Harvester.cs @@ -12,7 +12,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Activities; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Orders; diff --git a/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs index bebc2b2aa6..0e1dccd959 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs @@ -11,8 +11,8 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Commands; +using OpenRA.Mods.Common.Traits; using OpenRA.Network; using OpenRA.Widgets; diff --git a/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs index abaefd3eea..77a81533b8 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs @@ -13,7 +13,6 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Mods.RA.Traits; using OpenRA.Network; diff --git a/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs index a0c3ce7bbb..0058969c8c 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs @@ -11,7 +11,6 @@ using System; using System.Drawing; using System.Linq; -using OpenRA.Mods.Common; using OpenRA.Mods.Common.Traits; using OpenRA.Traits; using OpenRA.Widgets; diff --git a/OpenRA.Mods.TS/Traits/Render/RenderVoxels.cs b/OpenRA.Mods.TS/Traits/Render/RenderVoxels.cs index 9cedea678e..3e7593c9d0 100644 --- a/OpenRA.Mods.TS/Traits/Render/RenderVoxels.cs +++ b/OpenRA.Mods.TS/Traits/Render/RenderVoxels.cs @@ -11,9 +11,9 @@ using System.Collections.Generic; using System.Linq; using OpenRA.Graphics; -using OpenRA.Mods.Common; -using OpenRA.Traits; using OpenRA.Mods.Common.Graphics; +using OpenRA.Mods.Common.Traits; +using OpenRA.Traits; namespace OpenRA.Mods.TS.Traits {