Move carryall code to Mods.Common.
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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, ...")]
|
||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user