diff --git a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj index 5714130f15..1117b04de5 100644 --- a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj +++ b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj @@ -91,7 +91,6 @@ - @@ -99,8 +98,14 @@ + + + + + + @@ -112,6 +117,25 @@ + + + + + + + + + + + + + + + + + + + @@ -148,19 +172,6 @@ - - - - - - - - - - - - - @@ -168,7 +179,6 @@ - diff --git a/OpenRA.Mods.RA/Burns.cs b/OpenRA.Mods.Common/Traits/Burns.cs similarity index 97% rename from OpenRA.Mods.RA/Burns.cs rename to OpenRA.Mods.Common/Traits/Burns.cs index 2726855688..fcf66b2446 100644 --- a/OpenRA.Mods.RA/Burns.cs +++ b/OpenRA.Mods.Common/Traits/Burns.cs @@ -12,7 +12,7 @@ using OpenRA.Graphics; using OpenRA.Mods.Common.Traits.Render; using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { [Desc("This actor will play a fire animation over its body and take damage over time.")] class BurnsInfo : ITraitInfo, Requires diff --git a/OpenRA.Mods.RA/Buildings/CustomBuildTimeValue.cs b/OpenRA.Mods.Common/Traits/CustomBuildTimeValue.cs old mode 100755 new mode 100644 similarity index 96% rename from OpenRA.Mods.RA/Buildings/CustomBuildTimeValue.cs rename to OpenRA.Mods.Common/Traits/CustomBuildTimeValue.cs index 629f73e577..2ef19fd6c7 --- a/OpenRA.Mods.RA/Buildings/CustomBuildTimeValue.cs +++ b/OpenRA.Mods.Common/Traits/CustomBuildTimeValue.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA.Buildings +namespace OpenRA.Mods.Common { [Desc("Overrides the build time calculated by actor value.")] public class CustomBuildTimeValueInfo : TraitInfo diff --git a/OpenRA.Mods.RA/Buildings/CustomSellValue.cs b/OpenRA.Mods.Common/Traits/CustomSellValue.cs old mode 100755 new mode 100644 similarity index 96% rename from OpenRA.Mods.RA/Buildings/CustomSellValue.cs rename to OpenRA.Mods.Common/Traits/CustomSellValue.cs index 5634cbbb8e..1290e9fd76 --- a/OpenRA.Mods.RA/Buildings/CustomSellValue.cs +++ b/OpenRA.Mods.Common/Traits/CustomSellValue.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA.Buildings +namespace OpenRA.Mods.Common { [Desc("Allow a non-standard sell/repair value to avoid buy-sell exploits.")] public class CustomSellValueInfo : TraitInfo diff --git a/OpenRA.Mods.RA/Buildings/Demolishable.cs b/OpenRA.Mods.Common/Traits/Demolishable.cs similarity index 96% rename from OpenRA.Mods.RA/Buildings/Demolishable.cs rename to OpenRA.Mods.Common/Traits/Demolishable.cs index 6afef8bd28..bbb70a833d 100644 --- a/OpenRA.Mods.RA/Buildings/Demolishable.cs +++ b/OpenRA.Mods.Common/Traits/Demolishable.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { [Desc("Handle demolitions from C4 explosives.")] public class DemolishableInfo : IDemolishableInfo, ITraitInfo diff --git a/OpenRA.Mods.Common/RallyPoint.cs b/OpenRA.Mods.Common/Traits/RallyPoint.cs similarity index 100% rename from OpenRA.Mods.Common/RallyPoint.cs rename to OpenRA.Mods.Common/Traits/RallyPoint.cs diff --git a/OpenRA.Mods.RA/Buildings/ShakeOnDeath.cs b/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs similarity index 96% rename from OpenRA.Mods.RA/Buildings/ShakeOnDeath.cs rename to OpenRA.Mods.Common/Traits/ShakeOnDeath.cs index 7dd369f65d..3ac259f27a 100644 --- a/OpenRA.Mods.RA/Buildings/ShakeOnDeath.cs +++ b/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA.Buildings +namespace OpenRA.Mods.Common { public class ShakeOnDeathInfo : ITraitInfo { diff --git a/OpenRA.Mods.RA/Buildings/SoundOnDamageTransition.cs b/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs similarity index 96% rename from OpenRA.Mods.RA/Buildings/SoundOnDamageTransition.cs rename to OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs index a822bff71c..9b1f6f7bf2 100644 --- a/OpenRA.Mods.RA/Buildings/SoundOnDamageTransition.cs +++ b/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA.Buildings +namespace OpenRA.Mods.Common { public class SoundOnDamageTransitionInfo : ITraitInfo { diff --git a/OpenRA.Mods.RA/Valued.cs b/OpenRA.Mods.Common/Traits/Valued.cs old mode 100755 new mode 100644 similarity index 95% rename from OpenRA.Mods.RA/Valued.cs rename to OpenRA.Mods.Common/Traits/Valued.cs index 4c046a7199..3648ce8a27 --- a/OpenRA.Mods.RA/Valued.cs +++ b/OpenRA.Mods.Common/Traits/Valued.cs @@ -10,7 +10,7 @@ using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { [Desc("How much the unit is worth.")] public class ValuedInfo : TraitInfo diff --git a/OpenRA.Mods.Common/World/CreateMPPlayers.cs b/OpenRA.Mods.Common/Traits/World/CreateMPPlayers.cs similarity index 100% rename from OpenRA.Mods.Common/World/CreateMPPlayers.cs rename to OpenRA.Mods.Common/Traits/World/CreateMPPlayers.cs diff --git a/OpenRA.Mods.Common/World/MPStartLocations.cs b/OpenRA.Mods.Common/Traits/World/MPStartLocations.cs similarity index 100% rename from OpenRA.Mods.Common/World/MPStartLocations.cs rename to OpenRA.Mods.Common/Traits/World/MPStartLocations.cs diff --git a/OpenRA.Mods.Common/World/MPStartUnits.cs b/OpenRA.Mods.Common/Traits/World/MPStartUnits.cs similarity index 100% rename from OpenRA.Mods.Common/World/MPStartUnits.cs rename to OpenRA.Mods.Common/Traits/World/MPStartUnits.cs diff --git a/OpenRA.Mods.Common/World/PaletteFromCurrentTileset.cs b/OpenRA.Mods.Common/Traits/World/PaletteFromCurrentTileset.cs similarity index 100% rename from OpenRA.Mods.Common/World/PaletteFromCurrentTileset.cs rename to OpenRA.Mods.Common/Traits/World/PaletteFromCurrentTileset.cs diff --git a/OpenRA.Mods.Common/World/PaletteFromFile.cs b/OpenRA.Mods.Common/Traits/World/PaletteFromFile.cs similarity index 100% rename from OpenRA.Mods.Common/World/PaletteFromFile.cs rename to OpenRA.Mods.Common/Traits/World/PaletteFromFile.cs diff --git a/OpenRA.Mods.Common/World/PaletteFromRGBA.cs b/OpenRA.Mods.Common/Traits/World/PaletteFromRGBA.cs similarity index 100% rename from OpenRA.Mods.Common/World/PaletteFromRGBA.cs rename to OpenRA.Mods.Common/Traits/World/PaletteFromRGBA.cs diff --git a/OpenRA.Mods.Common/World/PlayMusicOnMapLoad.cs b/OpenRA.Mods.Common/Traits/World/PlayMusicOnMapLoad.cs similarity index 100% rename from OpenRA.Mods.Common/World/PlayMusicOnMapLoad.cs rename to OpenRA.Mods.Common/Traits/World/PlayMusicOnMapLoad.cs diff --git a/OpenRA.Mods.Common/World/PlayerPaletteFromCurrentTileset.cs b/OpenRA.Mods.Common/Traits/World/PlayerPaletteFromCurrentTileset.cs similarity index 100% rename from OpenRA.Mods.Common/World/PlayerPaletteFromCurrentTileset.cs rename to OpenRA.Mods.Common/Traits/World/PlayerPaletteFromCurrentTileset.cs diff --git a/OpenRA.Mods.Common/World/RadarPings.cs b/OpenRA.Mods.Common/Traits/World/RadarPings.cs similarity index 100% rename from OpenRA.Mods.Common/World/RadarPings.cs rename to OpenRA.Mods.Common/Traits/World/RadarPings.cs diff --git a/OpenRA.Mods.Common/World/ResourceClaim.cs b/OpenRA.Mods.Common/Traits/World/ResourceClaim.cs similarity index 100% rename from OpenRA.Mods.Common/World/ResourceClaim.cs rename to OpenRA.Mods.Common/Traits/World/ResourceClaim.cs diff --git a/OpenRA.Mods.Common/World/ResourceClaimLayer.cs b/OpenRA.Mods.Common/Traits/World/ResourceClaimLayer.cs similarity index 100% rename from OpenRA.Mods.Common/World/ResourceClaimLayer.cs rename to OpenRA.Mods.Common/Traits/World/ResourceClaimLayer.cs diff --git a/OpenRA.Mods.RA/ShroudPalette.cs b/OpenRA.Mods.Common/Traits/World/ShroudPalette.cs similarity index 98% rename from OpenRA.Mods.RA/ShroudPalette.cs rename to OpenRA.Mods.Common/Traits/World/ShroudPalette.cs index d7613ad11c..ff51213d86 100644 --- a/OpenRA.Mods.RA/ShroudPalette.cs +++ b/OpenRA.Mods.Common/Traits/World/ShroudPalette.cs @@ -13,7 +13,7 @@ using System.Linq; using OpenRA.Graphics; using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { [Desc("Adds the hard-coded shroud palette to the game")] class ShroudPaletteInfo : ITraitInfo diff --git a/OpenRA.Mods.RA/ShroudRenderer.cs b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs similarity index 99% rename from OpenRA.Mods.RA/ShroudRenderer.cs rename to OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs index fcc50315e3..1d7f288370 100644 --- a/OpenRA.Mods.RA/ShroudRenderer.cs +++ b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs @@ -12,7 +12,7 @@ using System; using OpenRA.Graphics; using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { public class ShroudRendererInfo : ITraitInfo { diff --git a/OpenRA.Mods.Common/World/SmudgeLayer.cs b/OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs similarity index 100% rename from OpenRA.Mods.Common/World/SmudgeLayer.cs rename to OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs diff --git a/OpenRA.Mods.Common/World/SpawnMapActors.cs b/OpenRA.Mods.Common/Traits/World/SpawnMapActors.cs similarity index 100% rename from OpenRA.Mods.Common/World/SpawnMapActors.cs rename to OpenRA.Mods.Common/Traits/World/SpawnMapActors.cs diff --git a/OpenRA.Mods.RA/StartGameNotification.cs b/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs similarity index 96% rename from OpenRA.Mods.RA/StartGameNotification.cs rename to OpenRA.Mods.Common/Traits/World/StartGameNotification.cs index f8db63aaae..514968f466 100644 --- a/OpenRA.Mods.RA/StartGameNotification.cs +++ b/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs @@ -11,7 +11,7 @@ using OpenRA.Graphics; using OpenRA.Traits; -namespace OpenRA.Mods.RA +namespace OpenRA.Mods.Common { class StartGameNotificationInfo : ITraitInfo { diff --git a/OpenRA.Mods.Common/World/TerrainGeometryOverlay.cs b/OpenRA.Mods.Common/Traits/World/TerrainGeometryOverlay.cs similarity index 100% rename from OpenRA.Mods.Common/World/TerrainGeometryOverlay.cs rename to OpenRA.Mods.Common/Traits/World/TerrainGeometryOverlay.cs diff --git a/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs b/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs index 34a0e06599..6a50490f5c 100644 --- a/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs +++ b/OpenRA.Mods.D2k/Widgets/BuildPaletteWidget.cs @@ -13,10 +13,11 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Graphics; +using OpenRA.Mods.Common; +using OpenRA.Mods.Common.Power; using OpenRA.Mods.RA; using OpenRA.Mods.RA.Buildings; using OpenRA.Mods.RA.Orders; -using OpenRA.Mods.Common.Power; using OpenRA.Mods.RA.Render; using OpenRA.Network; using OpenRA.Primitives; diff --git a/OpenRA.Mods.RA/AI/SupportPowerDecision.cs b/OpenRA.Mods.RA/AI/SupportPowerDecision.cs index f884e76cd8..20cded50a2 100644 --- a/OpenRA.Mods.RA/AI/SupportPowerDecision.cs +++ b/OpenRA.Mods.RA/AI/SupportPowerDecision.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using OpenRA; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.AI; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Activities/Repair.cs b/OpenRA.Mods.RA/Activities/Repair.cs index e83ad6ffe3..c0f11f0068 100644 --- a/OpenRA.Mods.RA/Activities/Repair.cs +++ b/OpenRA.Mods.RA/Activities/Repair.cs @@ -9,6 +9,7 @@ #endregion using System; +using OpenRA.Mods.Common; using OpenRA.Traits; namespace OpenRA.Mods.RA.Activities diff --git a/OpenRA.Mods.RA/Activities/Sell.cs b/OpenRA.Mods.RA/Activities/Sell.cs index 7f8e784d85..bf0428ef22 100755 --- a/OpenRA.Mods.RA/Activities/Sell.cs +++ b/OpenRA.Mods.RA/Activities/Sell.cs @@ -8,7 +8,7 @@ */ #endregion -using OpenRA.Mods.RA.Buildings; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Effects; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs b/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs index ea2ca0ab37..9ab249ab92 100755 --- a/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs +++ b/OpenRA.Mods.RA/Buildings/RepairableBuilding.cs @@ -12,6 +12,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.Effects; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Crates/DuplicateUnitCrateAction.cs b/OpenRA.Mods.RA/Crates/DuplicateUnitCrateAction.cs index de078920cb..8a74aabdfe 100644 --- a/OpenRA.Mods.RA/Crates/DuplicateUnitCrateAction.cs +++ b/OpenRA.Mods.RA/Crates/DuplicateUnitCrateAction.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.Move; using OpenRA.Primitives; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/EmitInfantryOnSell.cs b/OpenRA.Mods.RA/EmitInfantryOnSell.cs index 690d5919a5..9853b4a5e3 100644 --- a/OpenRA.Mods.RA/EmitInfantryOnSell.cs +++ b/OpenRA.Mods.RA/EmitInfantryOnSell.cs @@ -9,6 +9,7 @@ #endregion using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.Buildings; using OpenRA.Primitives; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/GainsExperience.cs b/OpenRA.Mods.RA/GainsExperience.cs index 844b71e402..3244ed52af 100644 --- a/OpenRA.Mods.RA/GainsExperience.cs +++ b/OpenRA.Mods.RA/GainsExperience.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Effects; using OpenRA.Mods.RA.Effects; using OpenRA.Primitives; diff --git a/OpenRA.Mods.RA/GivesBounty.cs b/OpenRA.Mods.RA/GivesBounty.cs index ee7f11489a..fc680f4469 100644 --- a/OpenRA.Mods.RA/GivesBounty.cs +++ b/OpenRA.Mods.RA/GivesBounty.cs @@ -9,7 +9,7 @@ #endregion using System.Linq; -using OpenRA.Mods.RA.Buildings; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Effects; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/GivesExperience.cs b/OpenRA.Mods.RA/GivesExperience.cs index 78e23aa5c1..d3bdc9dd31 100644 --- a/OpenRA.Mods.RA/GivesExperience.cs +++ b/OpenRA.Mods.RA/GivesExperience.cs @@ -8,6 +8,7 @@ */ #endregion +using OpenRA.Mods.Common; using OpenRA.Traits; namespace OpenRA.Mods.RA diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 6f39df1861..e564035462 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -164,16 +164,11 @@ - - - - - @@ -291,7 +286,6 @@ - @@ -316,7 +310,6 @@ - @@ -387,9 +380,7 @@ - - @@ -402,7 +393,6 @@ - diff --git a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs index 492aafe841..555d1dc91f 100644 --- a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs @@ -10,8 +10,9 @@ using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.RA.Buildings; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Power; +using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; namespace OpenRA.Mods.RA diff --git a/OpenRA.Mods.RA/Player/PlayerStatistics.cs b/OpenRA.Mods.RA/Player/PlayerStatistics.cs index 73b537af4a..9348b17461 100644 --- a/OpenRA.Mods.RA/Player/PlayerStatistics.cs +++ b/OpenRA.Mods.RA/Player/PlayerStatistics.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index b6a7dce6cb..80cb25744d 100644 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -11,8 +11,9 @@ using System; using System.Collections.Generic; using System.Linq; -using OpenRA.Mods.RA.Buildings; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Power; +using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; namespace OpenRA.Mods.RA diff --git a/OpenRA.Mods.RA/Scripting/Global/ActorGlobal.cs b/OpenRA.Mods.RA/Scripting/Global/ActorGlobal.cs index 178d07a2ef..43f08dc9aa 100644 --- a/OpenRA.Mods.RA/Scripting/Global/ActorGlobal.cs +++ b/OpenRA.Mods.RA/Scripting/Global/ActorGlobal.cs @@ -10,6 +10,7 @@ using System.Linq; using Eluant; +using OpenRA.Mods.Common; using OpenRA.Mods.RA.Air; using OpenRA.Mods.RA.Buildings; using OpenRA.Primitives; diff --git a/OpenRA.Mods.RA/UtilityCommands/ActorStatsExport.cs b/OpenRA.Mods.RA/UtilityCommands/ActorStatsExport.cs index 5c405328ba..6f464eed2a 100644 --- a/OpenRA.Mods.RA/UtilityCommands/ActorStatsExport.cs +++ b/OpenRA.Mods.RA/UtilityCommands/ActorStatsExport.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Data; using System.Linq; using OpenRA.GameRules; +using OpenRA.Mods.Common; using OpenRA.Traits; namespace OpenRA.Mods.RA.UtilityCommands diff --git a/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs index 10c96f1b00..67eef99fe5 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ObserverStatsLogic.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Drawing; using System.Linq; using OpenRA.Graphics; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Power; using OpenRA.Network; using OpenRA.Traits; diff --git a/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs index 2016f00d9d..07b5db9eec 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ProductionTooltipLogic.cs @@ -11,6 +11,7 @@ using System; using System.Drawing; using System.Linq; +using OpenRA.Mods.Common; using OpenRA.Mods.Common.Power; using OpenRA.Traits; using OpenRA.Widgets;