Move carryall code to Mods.Common.

This commit is contained in:
Paul Chote
2016-06-21 21:17:25 +01:00
parent 526f851489
commit 2355ad9dd1
7 changed files with 10 additions and 22 deletions

View File

@@ -10,13 +10,10 @@
#endregion #endregion
using OpenRA.Activities; using OpenRA.Activities;
using OpenRA.Mods.Common;
using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.D2k.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Activities namespace OpenRA.Mods.Common.Activities
{ {
public class DeliverUnit : Activity public class DeliverUnit : Activity
{ {

View File

@@ -10,13 +10,10 @@
#endregion #endregion
using OpenRA.Activities; using OpenRA.Activities;
using OpenRA.Mods.Common;
using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.D2k.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Activities namespace OpenRA.Mods.Common.Activities
{ {
public class PickupUnit : Activity public class PickupUnit : Activity
{ {

View File

@@ -758,6 +758,11 @@
<Compile Include="FileFormats\MSCabCompression.cs" /> <Compile Include="FileFormats\MSCabCompression.cs" />
<Compile Include="UtilityCommands\OutputActorMiniYamlCommand.cs" /> <Compile Include="UtilityCommands\OutputActorMiniYamlCommand.cs" />
<Compile Include="Traits\World\ScriptLobbyDropdown.cs" /> <Compile Include="Traits\World\ScriptLobbyDropdown.cs" />
<Compile Include="Activities\DeliverUnit.cs" />
<Compile Include="Activities\PickupUnit.cs" />
<Compile Include="Traits\Carryable.cs" />
<Compile Include="Traits\Carryall.cs" />
<Compile Include="Traits\Buildings\FreeActorWithDelivery.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>

View File

@@ -9,14 +9,11 @@
*/ */
#endregion #endregion
using OpenRA.Mods.Common;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.D2k.Activities;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Player receives a unit for free once the building is placed.", [Desc("Player receives a unit for free once the building is placed.",
"If you want more than one unit to be delivered, copy this section and assign IDs like FreeActorWithDelivery@2, ...")] "If you want more than one unit to be delivered, copy this section and assign IDs like FreeActorWithDelivery@2, ...")]

View File

@@ -12,10 +12,9 @@
using System.Linq; using System.Linq;
using OpenRA.Activities; using OpenRA.Activities;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Can be carried by units with the trait `Carryall`.")] [Desc("Can be carried by units with the trait `Carryall`.")]
public class CarryableInfo : ITraitInfo, Requires<UpgradeManagerInfo> public class CarryableInfo : ITraitInfo, Requires<UpgradeManagerInfo>

View File

@@ -13,12 +13,10 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.Common.Traits.Render; using OpenRA.Mods.Common.Traits.Render;
using OpenRA.Mods.D2k.Activities;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Automatically transports harvesters with the Carryable trait between resource fields and refineries.")] [Desc("Automatically transports harvesters with the Carryable trait between resource fields and refineries.")]
public class CarryallInfo : ITraitInfo, Requires<BodyOrientationInfo> public class CarryallInfo : ITraitInfo, Requires<BodyOrientationInfo>

View File

@@ -76,16 +76,11 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Activities\PickupUnit.cs" />
<Compile Include="Activities\DeliverUnit.cs" />
<Compile Include="Activities\SwallowActor.cs" /> <Compile Include="Activities\SwallowActor.cs" />
<Compile Include="SpriteLoaders\R8Loader.cs" /> <Compile Include="SpriteLoaders\R8Loader.cs" />
<Compile Include="Traits\AttackSwallow.cs" /> <Compile Include="Traits\AttackSwallow.cs" />
<Compile Include="Traits\Carryall.cs" />
<Compile Include="Traits\Buildings\FreeActorWithDelivery.cs" />
<Compile Include="Traits\Buildings\DamagedWithoutFoundation.cs" /> <Compile Include="Traits\Buildings\DamagedWithoutFoundation.cs" />
<Compile Include="Traits\Buildings\LaysTerrain.cs" /> <Compile Include="Traits\Buildings\LaysTerrain.cs" />
<Compile Include="Traits\Carryable.cs" />
<Compile Include="Traits\Player\HarvesterInsurance.cs" /> <Compile Include="Traits\Player\HarvesterInsurance.cs" />
<Compile Include="Traits\Render\WithCrumbleOverlay.cs" /> <Compile Include="Traits\Render\WithCrumbleOverlay.cs" />
<Compile Include="Traits\Render\WithDeliveryOverlay.cs" /> <Compile Include="Traits\Render\WithDeliveryOverlay.cs" />