Move ScaredyCat, TakeCover, RenderInfantry, WithBuildingExplosion and SpawnMPUnits as well as Hunt activity to Mods.Common.
This commit is contained in:
@@ -11,13 +11,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
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.RA.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Activities
|
namespace OpenRA.Mods.Common.Activities
|
||||||
{
|
{
|
||||||
public class Hunt : Activity
|
public class Hunt : Activity
|
||||||
{
|
{
|
||||||
@@ -75,6 +75,7 @@
|
|||||||
<Compile Include="Activities\Enter.cs" />
|
<Compile Include="Activities\Enter.cs" />
|
||||||
<Compile Include="Activities\EnterTransport.cs" />
|
<Compile Include="Activities\EnterTransport.cs" />
|
||||||
<Compile Include="Activities\Heal.cs" />
|
<Compile Include="Activities\Heal.cs" />
|
||||||
|
<Compile Include="Activities\Hunt.cs" />
|
||||||
<Compile Include="Activities\Move\AttackMoveActivity.cs" />
|
<Compile Include="Activities\Move\AttackMoveActivity.cs" />
|
||||||
<Compile Include="Activities\Move\Drag.cs" />
|
<Compile Include="Activities\Move\Drag.cs" />
|
||||||
<Compile Include="Activities\Move\Follow.cs" />
|
<Compile Include="Activities\Move\Follow.cs" />
|
||||||
@@ -208,6 +209,8 @@
|
|||||||
<Compile Include="Traits\GlobalUpgradable.cs" />
|
<Compile Include="Traits\GlobalUpgradable.cs" />
|
||||||
<Compile Include="Traits\Husk.cs" />
|
<Compile Include="Traits\Husk.cs" />
|
||||||
<Compile Include="Traits\Immobile.cs" />
|
<Compile Include="Traits\Immobile.cs" />
|
||||||
|
<Compile Include="Traits\Infantry\ScaredyCat.cs" />
|
||||||
|
<Compile Include="Traits\Infantry\TakeCover.cs" />
|
||||||
<Compile Include="Traits\JamsMissiles.cs" />
|
<Compile Include="Traits\JamsMissiles.cs" />
|
||||||
<Compile Include="Traits\KillsSelf.cs" />
|
<Compile Include="Traits\KillsSelf.cs" />
|
||||||
<Compile Include="Traits\LimitedAmmo.cs" />
|
<Compile Include="Traits\LimitedAmmo.cs" />
|
||||||
@@ -248,12 +251,14 @@
|
|||||||
<Compile Include="Traits\Render\RenderBuildingTurreted.cs" />
|
<Compile Include="Traits\Render\RenderBuildingTurreted.cs" />
|
||||||
<Compile Include="Traits\Render\RenderEditorOnly.cs" />
|
<Compile Include="Traits\Render\RenderEditorOnly.cs" />
|
||||||
<Compile Include="Traits\Render\RenderFlare.cs" />
|
<Compile Include="Traits\Render\RenderFlare.cs" />
|
||||||
|
<Compile Include="Traits\Render\RenderInfantry.cs" />
|
||||||
<Compile Include="Traits\Render\RenderNameTag.cs" />
|
<Compile Include="Traits\Render\RenderNameTag.cs" />
|
||||||
<Compile Include="Traits\Render\RenderSimple.cs" />
|
<Compile Include="Traits\Render\RenderSimple.cs" />
|
||||||
<Compile Include="Traits\Render\RenderSprites.cs" />
|
<Compile Include="Traits\Render\RenderSprites.cs" />
|
||||||
<Compile Include="Traits\Render\RenderUnit.cs" />
|
<Compile Include="Traits\Render\RenderUnit.cs" />
|
||||||
<Compile Include="Traits\Render\TimedUpgradeBar.cs" />
|
<Compile Include="Traits\Render\TimedUpgradeBar.cs" />
|
||||||
<Compile Include="Traits\Render\WithBarrel.cs" />
|
<Compile Include="Traits\Render\WithBarrel.cs" />
|
||||||
|
<Compile Include="Traits\Render\WithBuildingExplosion.cs" />
|
||||||
<Compile Include="Traits\Render\WithBuildingPlacedAnimation.cs" />
|
<Compile Include="Traits\Render\WithBuildingPlacedAnimation.cs" />
|
||||||
<Compile Include="Traits\Render\WithMakeAnimation.cs" />
|
<Compile Include="Traits\Render\WithMakeAnimation.cs" />
|
||||||
<Compile Include="Traits\Render\WithCrateBody.cs" />
|
<Compile Include="Traits\Render\WithCrateBody.cs" />
|
||||||
@@ -301,6 +306,7 @@
|
|||||||
<Compile Include="Traits\World\ShroudRenderer.cs" />
|
<Compile Include="Traits\World\ShroudRenderer.cs" />
|
||||||
<Compile Include="Traits\World\SmudgeLayer.cs" />
|
<Compile Include="Traits\World\SmudgeLayer.cs" />
|
||||||
<Compile Include="Traits\World\SpawnMapActors.cs" />
|
<Compile Include="Traits\World\SpawnMapActors.cs" />
|
||||||
|
<Compile Include="Traits\World\SpawnMPUnits.cs" />
|
||||||
<Compile Include="Traits\World\StartGameNotification.cs" />
|
<Compile Include="Traits\World\StartGameNotification.cs" />
|
||||||
<Compile Include="Traits\World\TerrainGeometryOverlay.cs" />
|
<Compile Include="Traits\World\TerrainGeometryOverlay.cs" />
|
||||||
<Compile Include="UtilityCommands\ConvertPngToShpCommand.cs" />
|
<Compile Include="UtilityCommands\ConvertPngToShpCommand.cs" />
|
||||||
|
|||||||
@@ -8,10 +8,9 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using OpenRA.Mods.Common.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Makes the unit automatically run around when taking damage.")]
|
[Desc("Makes the unit automatically run around when taking damage.")]
|
||||||
class ScaredyCatInfo : ITraitInfo
|
class ScaredyCatInfo : ITraitInfo
|
||||||
@@ -9,10 +9,9 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Mods.Common.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Make the unit go prone when under attack, in an attempt to reduce damage.")]
|
[Desc("Make the unit go prone when under attack, in an attempt to reduce damage.")]
|
||||||
public class TakeCoverInfo : TurretedInfo
|
public class TakeCoverInfo : TurretedInfo
|
||||||
@@ -12,10 +12,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.Common.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Mods.Common.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
public class RenderInfantryInfo : RenderSimpleInfo, Requires<IMoveInfo>
|
public class RenderInfantryInfo : RenderSimpleInfo, Requires<IMoveInfo>
|
||||||
{
|
{
|
||||||
3
OpenRA.Mods.RA/Render/WithBuildingExplosion.cs → OpenRA.Mods.Common/Traits/Render/WithBuildingExplosion.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Render/WithBuildingExplosion.cs → OpenRA.Mods.Common/Traits/Render/WithBuildingExplosion.cs
Executable file → Normal file
@@ -9,10 +9,9 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using OpenRA.Mods.Common.Effects;
|
using OpenRA.Mods.Common.Effects;
|
||||||
using OpenRA.Mods.Common.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Display explosions over the building footprint when it is destroyed.")]
|
[Desc("Display explosions over the building footprint when it is destroyed.")]
|
||||||
class WithBuildingExplosionInfo : ITraitInfo, Requires<BuildingInfo>
|
class WithBuildingExplosionInfo : ITraitInfo, Requires<BuildingInfo>
|
||||||
@@ -11,11 +11,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.Common.Traits;
|
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Spawn base actor at the spawnpoint and support units in an annulus around the base actor. Both are defined at MPStartUnits. Attach this to the world actor.")]
|
[Desc("Spawn base actor at the spawnpoint and support units in an annulus around the base actor. Both are defined at MPStartUnits. Attach this to the world actor.")]
|
||||||
public class SpawnMPUnitsInfo : TraitInfo<SpawnMPUnits>, Requires<MPStartLocationsInfo>, Requires<MPStartUnitsInfo> { }
|
public class SpawnMPUnitsInfo : TraitInfo<SpawnMPUnits>, Requires<MPStartLocationsInfo>, Requires<MPStartUnitsInfo> { }
|
||||||
@@ -79,7 +79,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Activities\CaptureActor.cs" />
|
<Compile Include="Activities\CaptureActor.cs" />
|
||||||
<Compile Include="Activities\Hunt.cs" />
|
|
||||||
<Compile Include="AI\AttackOrFleeFuzzy.cs" />
|
<Compile Include="AI\AttackOrFleeFuzzy.cs" />
|
||||||
<Compile Include="AI\BaseBuilder.cs" />
|
<Compile Include="AI\BaseBuilder.cs" />
|
||||||
<Compile Include="AI\HackyAI.cs" />
|
<Compile Include="AI\HackyAI.cs" />
|
||||||
@@ -166,14 +165,10 @@
|
|||||||
<Compile Include="Render\RenderBuildingWall.cs" />
|
<Compile Include="Render\RenderBuildingWall.cs" />
|
||||||
<Compile Include="Render\RenderBuildingWarFactory.cs" />
|
<Compile Include="Render\RenderBuildingWarFactory.cs" />
|
||||||
<Compile Include="Render\RenderHarvester.cs" />
|
<Compile Include="Render\RenderHarvester.cs" />
|
||||||
<Compile Include="Render\RenderInfantry.cs" />
|
|
||||||
<Compile Include="Render\RenderDisguise.cs" />
|
<Compile Include="Render\RenderDisguise.cs" />
|
||||||
<Compile Include="Render\RenderLandingCraft.cs" />
|
<Compile Include="Render\RenderLandingCraft.cs" />
|
||||||
<Compile Include="Render\WithBuildingExplosion.cs" />
|
|
||||||
<Compile Include="Repairable.cs" />
|
<Compile Include="Repairable.cs" />
|
||||||
<Compile Include="RepairableNear.cs" />
|
<Compile Include="RepairableNear.cs" />
|
||||||
<Compile Include="ScaredyCat.cs" />
|
|
||||||
<Compile Include="SpawnMPUnits.cs" />
|
|
||||||
<Compile Include="Disguise.cs" />
|
<Compile Include="Disguise.cs" />
|
||||||
<Compile Include="StoresResources.cs" />
|
<Compile Include="StoresResources.cs" />
|
||||||
<Compile Include="Traits\SupplyTruck.cs" />
|
<Compile Include="Traits\SupplyTruck.cs" />
|
||||||
@@ -185,7 +180,6 @@
|
|||||||
<Compile Include="SupportPowers\SupportPower.cs" />
|
<Compile Include="SupportPowers\SupportPower.cs" />
|
||||||
<Compile Include="SupportPowers\SupportPowerChargeBar.cs" />
|
<Compile Include="SupportPowers\SupportPowerChargeBar.cs" />
|
||||||
<Compile Include="SupportPowers\SupportPowerManager.cs" />
|
<Compile Include="SupportPowers\SupportPowerManager.cs" />
|
||||||
<Compile Include="TakeCover.cs" />
|
|
||||||
<Compile Include="ThrowsParticle.cs" />
|
<Compile Include="ThrowsParticle.cs" />
|
||||||
<Compile Include="TraitsInterfaces.cs" />
|
<Compile Include="TraitsInterfaces.cs" />
|
||||||
<Compile Include="Traits\Air\TargetableAircraft.cs" />
|
<Compile Include="Traits\Air\TargetableAircraft.cs" />
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Traits
|
namespace OpenRA.Mods.RA.Traits
|
||||||
|
|||||||
Reference in New Issue
Block a user