From c4b5ec52417c27ed0b868e417e1e17b16b4fff63 Mon Sep 17 00:00:00 2001 From: Zimmermann Gyula Date: Sun, 20 May 2018 17:25:22 +0200 Subject: [PATCH] Shift temporary owner-change logic from D2k to Common. --- OpenRA.Mods.Common/OpenRA.Mods.Common.csproj | 2 ++ .../Traits/TemporaryOwnerManager.cs | 2 +- .../Warheads/ChangeOwnerWarhead.cs | 7 +++---- OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj | 2 -- 4 files changed, 6 insertions(+), 7 deletions(-) rename {OpenRA.Mods.D2k => OpenRA.Mods.Common}/Traits/TemporaryOwnerManager.cs (98%) rename {OpenRA.Mods.D2k => OpenRA.Mods.Common}/Warheads/ChangeOwnerWarhead.cs (90%) diff --git a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj index 686232b5d2..f73bed4878 100644 --- a/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj +++ b/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj @@ -315,6 +315,7 @@ + @@ -593,6 +594,7 @@ + diff --git a/OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs b/OpenRA.Mods.Common/Traits/TemporaryOwnerManager.cs similarity index 98% rename from OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs rename to OpenRA.Mods.Common/Traits/TemporaryOwnerManager.cs index 46ec25fb0d..ed2c259561 100644 --- a/OpenRA.Mods.D2k/Traits/TemporaryOwnerManager.cs +++ b/OpenRA.Mods.Common/Traits/TemporaryOwnerManager.cs @@ -12,7 +12,7 @@ using System.Drawing; using OpenRA.Traits; -namespace OpenRA.Mods.D2k.Traits +namespace OpenRA.Mods.Common.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/Warheads/ChangeOwnerWarhead.cs b/OpenRA.Mods.Common/Warheads/ChangeOwnerWarhead.cs similarity index 90% rename from OpenRA.Mods.D2k/Warheads/ChangeOwnerWarhead.cs rename to OpenRA.Mods.Common/Warheads/ChangeOwnerWarhead.cs index efef6f81a3..d5c4827ad3 100644 --- a/OpenRA.Mods.D2k/Warheads/ChangeOwnerWarhead.cs +++ b/OpenRA.Mods.Common/Warheads/ChangeOwnerWarhead.cs @@ -10,13 +10,12 @@ #endregion using System.Collections.Generic; -using OpenRA.Mods.Common.Warheads; -using OpenRA.Mods.D2k.Traits; +using OpenRA.Mods.Common.Traits; using OpenRA.Traits; -namespace OpenRA.Mods.D2k.Warheads +namespace OpenRA.Mods.Common.Warheads { - [Desc("Interacts with the DynamicOwnerChange trait.")] + [Desc("Interacts with the TemporaryOwnerManager trait.")] public class ChangeOwnerWarhead : Warhead { [Desc("Duration of the owner change (in ticks). Set to 0 to make it permanent.")] diff --git a/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj b/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj index 3f2340997f..1038c902fe 100644 --- a/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj +++ b/OpenRA.Mods.D2k/OpenRA.Mods.D2k.csproj @@ -74,14 +74,12 @@ - -