Merge pull request #7316 from reaperrr/move-stuff28

Moved Upgrades, SupportPowers and some misc features to Mods.Common
This commit is contained in:
Oliver Brakmann
2015-01-15 20:57:40 +01:00
38 changed files with 72 additions and 85 deletions

View File

@@ -10,7 +10,7 @@
using OpenRA.Mods.Cnc.Effects; using OpenRA.Mods.Cnc.Effects;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Traits; using OpenRA.Traits;

View File

@@ -11,12 +11,10 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using OpenRA.Effects; using OpenRA.Effects;
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
{ {
class Demolish : Enter class Demolish : Enter
{ {

View File

@@ -73,6 +73,7 @@
<Compile Include="Activities\Air\TakeOff.cs" /> <Compile Include="Activities\Air\TakeOff.cs" />
<Compile Include="Activities\Attack.cs" /> <Compile Include="Activities\Attack.cs" />
<Compile Include="Activities\CaptureActor.cs" /> <Compile Include="Activities\CaptureActor.cs" />
<Compile Include="Activities\Demolish.cs" />
<Compile Include="Activities\Enter.cs" /> <Compile Include="Activities\Enter.cs" />
<Compile Include="Activities\EnterTransport.cs" /> <Compile Include="Activities\EnterTransport.cs" />
<Compile Include="Activities\ExternalCaptureActor.cs" /> <Compile Include="Activities\ExternalCaptureActor.cs" />
@@ -204,6 +205,7 @@
<Compile Include="Traits\Buildings\Reservable.cs" /> <Compile Include="Traits\Buildings\Reservable.cs" />
<Compile Include="Traits\Buildings\TargetableBuilding.cs" /> <Compile Include="Traits\Buildings\TargetableBuilding.cs" />
<Compile Include="Traits\Burns.cs" /> <Compile Include="Traits\Burns.cs" />
<Compile Include="Traits\C4Demolition.cs" />
<Compile Include="Traits\Capturable.cs" /> <Compile Include="Traits\Capturable.cs" />
<Compile Include="Traits\CaptureNotification.cs" /> <Compile Include="Traits\CaptureNotification.cs" />
<Compile Include="Traits\Captures.cs" /> <Compile Include="Traits\Captures.cs" />
@@ -211,6 +213,7 @@
<Compile Include="Traits\CashTrickler.cs" /> <Compile Include="Traits\CashTrickler.cs" />
<Compile Include="Traits\Cloak.cs" /> <Compile Include="Traits\Cloak.cs" />
<Compile Include="Traits\Crushable.cs" /> <Compile Include="Traits\Crushable.cs" />
<Compile Include="Traits\EmitInfantryOnSell.cs" />
<Compile Include="Traits\ExternalCapturable.cs" /> <Compile Include="Traits\ExternalCapturable.cs" />
<Compile Include="Traits\ExternalCapturableBar.cs" /> <Compile Include="Traits\ExternalCapturableBar.cs" />
<Compile Include="Traits\ExternalCaptures.cs" /> <Compile Include="Traits\ExternalCaptures.cs" />
@@ -233,6 +236,7 @@
<Compile Include="Traits\Immobile.cs" /> <Compile Include="Traits\Immobile.cs" />
<Compile Include="Traits\Infantry\ScaredyCat.cs" /> <Compile Include="Traits\Infantry\ScaredyCat.cs" />
<Compile Include="Traits\Infantry\TakeCover.cs" /> <Compile Include="Traits\Infantry\TakeCover.cs" />
<Compile Include="Traits\Invulnerable.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" />
@@ -288,6 +292,7 @@
<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\SupportPowerChargeBar.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\WithBuildingExplosion.cs" />
@@ -325,12 +330,22 @@
<Compile Include="Traits\Sound\AnnounceOnKill.cs" /> <Compile Include="Traits\Sound\AnnounceOnKill.cs" />
<Compile Include="Traits\Sound\DeathSounds.cs" /> <Compile Include="Traits\Sound\DeathSounds.cs" />
<Compile Include="Traits\Sound\SoundOnDamageTransition.cs" /> <Compile Include="Traits\Sound\SoundOnDamageTransition.cs" />
<Compile Include="Traits\SupportPowers\AirstrikePower.cs" />
<Compile Include="Traits\SupportPowers\GrantUpgradePower.cs" />
<Compile Include="Traits\SupportPowers\NukePower.cs" />
<Compile Include="Traits\SupportPowers\SupportPower.cs" />
<Compile Include="Traits\SupportPowers\SupportPowerManager.cs" />
<Compile Include="Traits\SupportPowers\SpawnActorPower.cs" />
<Compile Include="Traits\TargetableUnit.cs" /> <Compile Include="Traits\TargetableUnit.cs" />
<Compile Include="Traits\ThrowsParticle.cs" /> <Compile Include="Traits\ThrowsParticle.cs" />
<Compile Include="Traits\Tooltip.cs" /> <Compile Include="Traits\Tooltip.cs" />
<Compile Include="Traits\TransformOnCapture.cs" /> <Compile Include="Traits\TransformOnCapture.cs" />
<Compile Include="Traits\Transforms.cs" />
<Compile Include="Traits\Turreted.cs" /> <Compile Include="Traits\Turreted.cs" />
<Compile Include="Traits\Upgrades\DisableUpgrade.cs" />
<Compile Include="Traits\Upgrades\GainsStatUpgrades.cs" />
<Compile Include="Traits\Upgrades\UpgradableTrait.cs" /> <Compile Include="Traits\Upgrades\UpgradableTrait.cs" />
<Compile Include="Traits\Upgrades\UpgradeActorsNear.cs" />
<Compile Include="Traits\Upgrades\UpgradeManager.cs" /> <Compile Include="Traits\Upgrades\UpgradeManager.cs" />
<Compile Include="Traits\Valued.cs" /> <Compile Include="Traits\Valued.cs" />
<Compile Include="Traits\Wanders.cs" /> <Compile Include="Traits\Wanders.cs" />
@@ -377,6 +392,7 @@
<Compile Include="Warheads\CreateEffectWarhead.cs" /> <Compile Include="Warheads\CreateEffectWarhead.cs" />
<Compile Include="Warheads\CreateResourceWarhead.cs" /> <Compile Include="Warheads\CreateResourceWarhead.cs" />
<Compile Include="Warheads\DestroyResourceWarhead.cs" /> <Compile Include="Warheads\DestroyResourceWarhead.cs" />
<Compile Include="Warheads\GrantUpgradeWarhead.cs" />
<Compile Include="Warheads\HealthPercentageDamageWarhead.cs" /> <Compile Include="Warheads\HealthPercentageDamageWarhead.cs" />
<Compile Include="Warheads\LeaveSmudgeWarhead.cs" /> <Compile Include="Warheads\LeaveSmudgeWarhead.cs" />
<Compile Include="Warheads\SpreadDamageWarhead.cs" /> <Compile Include="Warheads\SpreadDamageWarhead.cs" />
@@ -396,13 +412,18 @@
<Compile Include="Widgets\Logic\Ingame\LoadIngamePlayerOrObserverUILogic.cs" /> <Compile Include="Widgets\Logic\Ingame\LoadIngamePlayerOrObserverUILogic.cs" />
<Compile Include="Widgets\Logic\ModBrowserLogic.cs" /> <Compile Include="Widgets\Logic\ModBrowserLogic.cs" />
<Compile Include="Widgets\Logic\ProductionTooltipLogic.cs" /> <Compile Include="Widgets\Logic\ProductionTooltipLogic.cs" />
<Compile Include="Widgets\Logic\SupportPowerTooltipLogic.cs" />
<Compile Include="Widgets\Logic\SupportPowerBinLogic.cs" />
<Compile Include="Widgets\MenuButtonWidget.cs" /> <Compile Include="Widgets\MenuButtonWidget.cs" />
<Compile Include="Widgets\ObserverSupportPowerIconsWidget.cs" />
<Compile Include="Widgets\ProductionPaletteWidget.cs" /> <Compile Include="Widgets\ProductionPaletteWidget.cs" />
<Compile Include="Widgets\ProductionTabsWidget.cs" /> <Compile Include="Widgets\ProductionTabsWidget.cs" />
<Compile Include="Widgets\ProductionTypeButtonWidget.cs" /> <Compile Include="Widgets\ProductionTypeButtonWidget.cs" />
<Compile Include="Widgets\RadarWidget.cs" /> <Compile Include="Widgets\RadarWidget.cs" />
<Compile Include="Widgets\ResourceBarWidget.cs" /> <Compile Include="Widgets\ResourceBarWidget.cs" />
<Compile Include="Widgets\StrategicProgressWidget.cs" /> <Compile Include="Widgets\StrategicProgressWidget.cs" />
<Compile Include="Widgets\SupportPowersWidget.cs" />
<Compile Include="Widgets\SupportPowerTimerWidget.cs" />
<Compile Include="SpriteLoaders\ShpTDLoader.cs" /> <Compile Include="SpriteLoaders\ShpTDLoader.cs" />
<Compile Include="SpriteLoaders\ShpTSLoader.cs" /> <Compile Include="SpriteLoaders\ShpTSLoader.cs" />
<Compile Include="SpriteLoaders\TmpRALoader.cs" /> <Compile Include="SpriteLoaders\TmpRALoader.cs" />

View File

@@ -11,12 +11,11 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Mods.Common; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Orders; using OpenRA.Mods.Common.Orders;
using OpenRA.Mods.RA.Activities;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
class C4DemolitionInfo : ITraitInfo class C4DemolitionInfo : ITraitInfo
{ {

View File

@@ -9,11 +9,10 @@
#endregion #endregion
using System.Linq; using System.Linq;
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 new actors when sold.")] [Desc("Spawn new actors when sold.")]
class EmitInfantryOnSellInfo : TraitInfo<EmitInfantryOnSell> class EmitInfantryOnSellInfo : TraitInfo<EmitInfantryOnSell>

View File

@@ -11,7 +11,7 @@
using OpenRA.GameRules; using OpenRA.GameRules;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.Common.Traits
{ {
[Desc("This unit cannot be damaged.")] [Desc("This unit cannot be damaged.")]
class InvulnerableInfo : TraitInfo<Invulnerable> { } class InvulnerableInfo : TraitInfo<Invulnerable> { }

View File

@@ -12,7 +12,7 @@ using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Display the time remaining until the super weapon attached to the actor is ready to the player and his allies.")] [Desc("Display the time remaining until the super weapon attached to the actor is ready to the player and his allies.")]
class SupportPowerChargeBarInfo : ITraitInfo class SupportPowerChargeBarInfo : ITraitInfo

View File

@@ -14,13 +14,12 @@ using System.Linq;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Effects; using OpenRA.Mods.Common.Effects;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Activities;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
class AirstrikePowerInfo : SupportPowerInfo public class AirstrikePowerInfo : SupportPowerInfo
{ {
[ActorReference] [ActorReference]
public readonly string UnitType = "badr.bomber"; public readonly string UnitType = "badr.bomber";
@@ -43,7 +42,7 @@ namespace OpenRA.Mods.RA.Traits
public override object Create(ActorInitializer init) { return new AirstrikePower(init.Self, this); } public override object Create(ActorInitializer init) { return new AirstrikePower(init.Self, this); }
} }
class AirstrikePower : SupportPower public class AirstrikePower : SupportPower
{ {
public AirstrikePower(Actor self, AirstrikePowerInfo info) public AirstrikePower(Actor self, AirstrikePowerInfo info)
: base(self, info) { } : base(self, info) { }

View File

@@ -12,10 +12,9 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
class GrantUpgradePowerInfo : SupportPowerInfo class GrantUpgradePowerInfo : SupportPowerInfo
{ {

View File

@@ -12,12 +12,10 @@ using System;
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Effects; using OpenRA.Mods.Common.Effects;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Activities;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
class NukePowerInfo : SupportPowerInfo, Requires<IBodyOrientationInfo> class NukePowerInfo : SupportPowerInfo, Requires<IBodyOrientationInfo>
{ {

View File

@@ -10,11 +10,10 @@
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.RA.Activities; using OpenRA.Mods.Common.Effects;
using OpenRA.Mods.RA.Effects;
using OpenRA.Primitives; using OpenRA.Primitives;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Spawns an actor that stays for a limited amount of time.")] [Desc("Spawns an actor that stays for a limited amount of time.")]
public class SpawnActorPowerInfo : SupportPowerInfo public class SpawnActorPowerInfo : SupportPowerInfo

View File

@@ -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
{ {
public abstract class SupportPowerInfo : ITraitInfo public abstract class SupportPowerInfo : ITraitInfo
{ {

View File

@@ -12,10 +12,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Attach this to the player actor.")] [Desc("Attach this to the player actor.")]
public class SupportPowerManagerInfo : ITraitInfo, Requires<DeveloperModeInfo>, Requires<TechTreeInfo> public class SupportPowerManagerInfo : ITraitInfo, Requires<DeveloperModeInfo>, Requires<TechTreeInfo>

View File

@@ -11,14 +11,12 @@
using System.Collections.Generic; using System.Collections.Generic;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Orders; using OpenRA.Mods.Common.Orders;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Activities;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Actor becomes a specified actor type when this trait is triggered.")] [Desc("Actor becomes a specified actor type when this trait is triggered.")]
class TransformsInfo : ITraitInfo public class TransformsInfo : ITraitInfo
{ {
[ActorReference] public readonly string IntoActor = null; [ActorReference] public readonly string IntoActor = null;
public readonly CVec Offset = CVec.Zero; public readonly CVec Offset = CVec.Zero;
@@ -29,7 +27,7 @@ namespace OpenRA.Mods.RA.Traits
public virtual object Create(ActorInitializer init) { return new Transforms(init, this); } public virtual object Create(ActorInitializer init) { return new Transforms(init, this); }
} }
class Transforms : IIssueOrder, IResolveOrder, IOrderVoice public class Transforms : IIssueOrder, IResolveOrder, IOrderVoice
{ {
readonly Actor self; readonly Actor self;
readonly TransformsInfo info; readonly TransformsInfo info;

View File

@@ -11,10 +11,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using OpenRA.GameRules; using OpenRA.GameRules;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.Common.Traits
{ {
public class DisableUpgradeInfo : UpgradableTraitInfo, ITraitInfo public class DisableUpgradeInfo : UpgradableTraitInfo, ITraitInfo
{ {

View File

@@ -11,10 +11,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using OpenRA.GameRules; using OpenRA.GameRules;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.Common.Traits
{ {
[Desc("This actor has properties that upgrade when a specific criteria is met.")] [Desc("This actor has properties that upgrade when a specific criteria is met.")]
public class GainsStatUpgradesInfo : ITraitInfo public class GainsStatUpgradesInfo : ITraitInfo

View File

@@ -11,10 +11,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using OpenRA.GameRules; using OpenRA.GameRules;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Applies an upgrade to actors within a specified range.")] [Desc("Applies an upgrade to actors within a specified range.")]
public class UpgradeActorsNearInfo : ITraitInfo public class UpgradeActorsNearInfo : ITraitInfo

View File

@@ -12,11 +12,11 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.GameRules; using OpenRA.GameRules;
using OpenRA.Mods.Common.Effects;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Effects;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.Common.Warheads
{ {
public class GrantUpgradeWarhead : Warhead public class GrantUpgradeWarhead : Warhead
{ {

View File

@@ -11,7 +11,7 @@
using System; using System;
using OpenRA.Widgets; using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets.Logic namespace OpenRA.Mods.Common.Widgets.Logic
{ {
public class SupportPowerBinLogic public class SupportPowerBinLogic
{ {

View File

@@ -9,10 +9,10 @@
#endregion #endregion
using System; using System;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Widgets; using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets.Logic namespace OpenRA.Mods.Common.Widgets.Logic
{ {
public class SupportPowerTooltipLogic public class SupportPowerTooltipLogic
{ {

View File

@@ -13,10 +13,10 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Widgets; using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets namespace OpenRA.Mods.Common.Widgets
{ {
public class ObserverSupportPowerIconsWidget : Widget public class ObserverSupportPowerIconsWidget : Widget
{ {

View File

@@ -11,11 +11,11 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Widgets; using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets namespace OpenRA.Mods.Common.Widgets
{ {
public class SupportPowerTimerWidget : Widget public class SupportPowerTimerWidget : Widget
{ {

View File

@@ -13,10 +13,10 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Widgets; using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets namespace OpenRA.Mods.Common.Widgets
{ {
public class SupportPowersWidget : Widget public class SupportPowersWidget : Widget
{ {

View File

@@ -13,7 +13,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Widgets; using OpenRA.Widgets;

View File

@@ -13,6 +13,7 @@ using System.Linq;
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.Graphics; using OpenRA.Graphics;
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.Effects namespace OpenRA.Mods.RA.Effects

View File

@@ -83,7 +83,6 @@
<Compile Include="AI\HackyAI.cs" /> <Compile Include="AI\HackyAI.cs" />
<Compile Include="Traits\AcceptsSupplies.cs" /> <Compile Include="Traits\AcceptsSupplies.cs" />
<Compile Include="Activities\DeliverResources.cs" /> <Compile Include="Activities\DeliverResources.cs" />
<Compile Include="Activities\Demolish.cs" />
<Compile Include="Activities\DonateSupplies.cs" /> <Compile Include="Activities\DonateSupplies.cs" />
<Compile Include="Activities\FindResources.cs" /> <Compile Include="Activities\FindResources.cs" />
<Compile Include="Activities\Infiltrate.cs" /> <Compile Include="Activities\Infiltrate.cs" />
@@ -97,12 +96,11 @@
<Compile Include="Effects\TeslaZap.cs" /> <Compile Include="Effects\TeslaZap.cs" />
<Compile Include="Traits\Render\RenderUnitReload.cs" /> <Compile Include="Traits\Render\RenderUnitReload.cs" />
<Compile Include="Graphics\TeslaZapRenderable.cs" /> <Compile Include="Graphics\TeslaZapRenderable.cs" />
<Compile Include="EjectOnDeath.cs" /> <Compile Include="Traits\EjectOnDeath.cs" />
<Compile Include="AI\RushFuzzy.cs" /> <Compile Include="AI\RushFuzzy.cs" />
<Compile Include="AI\StateMachine.cs" /> <Compile Include="AI\StateMachine.cs" />
<Compile Include="Traits\Attack\AttackLeap.cs" /> <Compile Include="Traits\Attack\AttackLeap.cs" />
<Compile Include="Scripting\Properties\RepairableBuildingProperties.cs" /> <Compile Include="Scripting\Properties\RepairableBuildingProperties.cs" />
<Compile Include="C4Demolition.cs" />
<Compile Include="Traits\PaletteEffects\ChronoshiftPaletteEffect.cs" /> <Compile Include="Traits\PaletteEffects\ChronoshiftPaletteEffect.cs" />
<Compile Include="Traits\Chronoshiftable.cs" /> <Compile Include="Traits\Chronoshiftable.cs" />
<Compile Include="CrateSpawner.cs" /> <Compile Include="CrateSpawner.cs" />
@@ -122,8 +120,6 @@
<Compile Include="Traits\DemoTruck.cs" /> <Compile Include="Traits\DemoTruck.cs" />
<Compile Include="Effects\GpsDot.cs" /> <Compile Include="Effects\GpsDot.cs" />
<Compile Include="Effects\Parachute.cs" /> <Compile Include="Effects\Parachute.cs" />
<Compile Include="EmitInfantryOnSell.cs" />
<Compile Include="Invulnerable.cs" />
<Compile Include="Lint\CheckActorReferences.cs" /> <Compile Include="Lint\CheckActorReferences.cs" />
<Compile Include="Lint\CheckSyncAnnotations.cs" /> <Compile Include="Lint\CheckSyncAnnotations.cs" />
<Compile Include="Lint\CheckTraitPrerequisites.cs" /> <Compile Include="Lint\CheckTraitPrerequisites.cs" />
@@ -131,7 +127,7 @@
<Compile Include="Traits\MadTank.cs" /> <Compile Include="Traits\MadTank.cs" />
<Compile Include="Traits\Mine.cs" /> <Compile Include="Traits\Mine.cs" />
<Compile Include="Traits\Minelayer.cs" /> <Compile Include="Traits\Minelayer.cs" />
<Compile Include="ParaDrop.cs" /> <Compile Include="Traits\ParaDrop.cs" />
<Compile Include="Traits\PortableChrono.cs" /> <Compile Include="Traits\PortableChrono.cs" />
<Compile Include="Scripting\Properties\GuardProperties.cs" /> <Compile Include="Scripting\Properties\GuardProperties.cs" />
<Compile Include="Widgets\Logic\TabCompletionLogic.cs" /> <Compile Include="Widgets\Logic\TabCompletionLogic.cs" />
@@ -139,16 +135,11 @@
<Compile Include="Traits\Render\RenderHarvester.cs" /> <Compile Include="Traits\Render\RenderHarvester.cs" />
<Compile Include="Traits\Render\RenderDisguise.cs" /> <Compile Include="Traits\Render\RenderDisguise.cs" />
<Compile Include="Traits\Render\RenderLandingCraft.cs" /> <Compile Include="Traits\Render\RenderLandingCraft.cs" />
<Compile Include="Disguise.cs" /> <Compile Include="Traits\Disguise.cs" />
<Compile Include="Traits\SupplyTruck.cs" /> <Compile Include="Traits\SupplyTruck.cs" />
<Compile Include="SupportPowers\AirstrikePower.cs" />
<Compile Include="Traits\SupportPowers\ChronoshiftPower.cs" /> <Compile Include="Traits\SupportPowers\ChronoshiftPower.cs" />
<Compile Include="Traits\SupportPowers\GpsPower.cs" /> <Compile Include="Traits\SupportPowers\GpsPower.cs" />
<Compile Include="Traits\SupportPowers\ParatroopersPower.cs" /> <Compile Include="Traits\SupportPowers\ParatroopersPower.cs" />
<Compile Include="SupportPowers\NukePower.cs" />
<Compile Include="SupportPowers\SupportPower.cs" />
<Compile Include="SupportPowers\SupportPowerChargeBar.cs" />
<Compile Include="SupportPowers\SupportPowerManager.cs" />
<Compile Include="TraitsInterfaces.cs" /> <Compile Include="TraitsInterfaces.cs" />
<Compile Include="Traits\Buildings\Fake.cs" /> <Compile Include="Traits\Buildings\Fake.cs" />
<Compile Include="Traits\Buildings\OreRefinery.cs" /> <Compile Include="Traits\Buildings\OreRefinery.cs" />
@@ -156,8 +147,7 @@
<Compile Include="Traits\HarvesterHuskModifier.cs" /> <Compile Include="Traits\HarvesterHuskModifier.cs" />
<Compile Include="Traits\LeavesHusk.cs" /> <Compile Include="Traits\LeavesHusk.cs" />
<Compile Include="Traits\TargetableSubmarine.cs" /> <Compile Include="Traits\TargetableSubmarine.cs" />
<Compile Include="TransformOnPassenger.cs" /> <Compile Include="Traits\TransformOnPassenger.cs" />
<Compile Include="Transforms.cs" />
<Compile Include="Widgets\Logic\KickSpectatorsLogic.cs" /> <Compile Include="Widgets\Logic\KickSpectatorsLogic.cs" />
<Compile Include="Widgets\Logic\MissionBrowserLogic.cs" /> <Compile Include="Widgets\Logic\MissionBrowserLogic.cs" />
<Compile Include="Widgets\Logic\IngameMenuLogic.cs" /> <Compile Include="Widgets\Logic\IngameMenuLogic.cs" />
@@ -184,8 +174,6 @@
<Compile Include="Widgets\Logic\ServerBrowserLogic.cs" /> <Compile Include="Widgets\Logic\ServerBrowserLogic.cs" />
<Compile Include="Widgets\Logic\ServerCreationLogic.cs" /> <Compile Include="Widgets\Logic\ServerCreationLogic.cs" />
<Compile Include="Widgets\ObserverProductionIconsWidget.cs" /> <Compile Include="Widgets\ObserverProductionIconsWidget.cs" />
<Compile Include="Widgets\ObserverSupportPowerIconsWidget.cs" />
<Compile Include="Widgets\SupportPowerTimerWidget.cs" />
<Compile Include="Widgets\WorldCommandWidget.cs" /> <Compile Include="Widgets\WorldCommandWidget.cs" />
<Compile Include="Player\BaseAttackNotifier.cs" /> <Compile Include="Player\BaseAttackNotifier.cs" />
<Compile Include="Player\HarvesterAttackNotifier.cs" /> <Compile Include="Player\HarvesterAttackNotifier.cs" />
@@ -227,32 +215,23 @@
<Compile Include="Lint\CheckPlayers.cs" /> <Compile Include="Lint\CheckPlayers.cs" />
<Compile Include="Lint\CheckActors.cs" /> <Compile Include="Lint\CheckActors.cs" />
<Compile Include="Lint\CheckMapCordon.cs" /> <Compile Include="Lint\CheckMapCordon.cs" />
<Compile Include="Parachutable.cs" /> <Compile Include="Traits\Parachutable.cs" />
<Compile Include="Widgets\Logic\InstallFromCDLogic.cs" /> <Compile Include="Widgets\Logic\InstallFromCDLogic.cs" />
<Compile Include="Widgets\Logic\InstallMusicLogic.cs" /> <Compile Include="Widgets\Logic\InstallMusicLogic.cs" />
<Compile Include="SupportPowers\SpawnActorPower.cs" />
<Compile Include="Traits\Buildings\ClonesProducedUnits.cs" /> <Compile Include="Traits\Buildings\ClonesProducedUnits.cs" />
<Compile Include="Cloneable.cs" /> <Compile Include="Traits\Cloneable.cs" />
<Compile Include="Widgets\Logic\Ingame\IngameCashCounterLogic.cs" /> <Compile Include="Widgets\Logic\Ingame\IngameCashCounterLogic.cs" />
<Compile Include="Widgets\Logic\Ingame\IngamePowerCounterLogic.cs" /> <Compile Include="Widgets\Logic\Ingame\IngamePowerCounterLogic.cs" />
<Compile Include="Widgets\Logic\Ingame\IngamePowerBarLogic.cs" /> <Compile Include="Widgets\Logic\Ingame\IngamePowerBarLogic.cs" />
<Compile Include="Widgets\Logic\Ingame\IngameSiloBarLogic.cs" /> <Compile Include="Widgets\Logic\Ingame\IngameSiloBarLogic.cs" />
<Compile Include="Widgets\Logic\Ingame\AddRaceSuffixLogic.cs" /> <Compile Include="Widgets\Logic\Ingame\AddRaceSuffixLogic.cs" />
<Compile Include="Widgets\Logic\ClassicProductionLogic.cs" /> <Compile Include="Widgets\Logic\ClassicProductionLogic.cs" />
<Compile Include="Widgets\SupportPowersWidget.cs" />
<Compile Include="Widgets\Logic\SupportPowerTooltipLogic.cs" />
<Compile Include="Widgets\Logic\SupportPowerBinLogic.cs" />
<Compile Include="Widgets\Logic\DebugMenuLogic.cs" /> <Compile Include="Widgets\Logic\DebugMenuLogic.cs" />
<Compile Include="GainsStatUpgrades.cs" />
<Compile Include="Warheads\PerCellDamageWarhead.cs" /> <Compile Include="Warheads\PerCellDamageWarhead.cs" />
<Compile Include="Scripting\Properties\HarvesterProperties.cs" /> <Compile Include="Scripting\Properties\HarvesterProperties.cs" />
<Compile Include="Scripting\Properties\HelicopterProperties.cs" /> <Compile Include="Scripting\Properties\HelicopterProperties.cs" />
<Compile Include="Scripting\Properties\PlaneProperties.cs" /> <Compile Include="Scripting\Properties\PlaneProperties.cs" />
<Compile Include="SupportPowers\GrantUpgradePower.cs" /> <Compile Include="Traits\InvulnerabilityUpgrade.cs" />
<Compile Include="InvulnerabilityUpgrade.cs" />
<Compile Include="DisableUpgrade.cs" />
<Compile Include="Warheads\GrantUpgradeWarhead.cs" />
<Compile Include="UpgradeActorsNear.cs" />
<Compile Include="Scripting\Properties\TransformProperties.cs" /> <Compile Include="Scripting\Properties\TransformProperties.cs" />
<Compile Include="UtilityCommands\ActorStatsExport.cs" /> <Compile Include="UtilityCommands\ActorStatsExport.cs" />
<Compile Include="UtilityCommands\ExportCharacterSeparatedRules.cs" /> <Compile Include="UtilityCommands\ExportCharacterSeparatedRules.cs" />

View File

@@ -10,7 +10,7 @@
using System.Linq; using System.Linq;
using Eluant; using Eluant;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Scripting; using OpenRA.Scripting;
using OpenRA.Traits; using OpenRA.Traits;

View File

@@ -8,6 +8,7 @@
*/ */
#endregion #endregion
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.RA.Traits;
using OpenRA.Scripting; using OpenRA.Scripting;
using OpenRA.Traits; using OpenRA.Traits;

View File

@@ -11,7 +11,7 @@
using System; using System;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA.Traits
{ {
[Desc("Actors with the \"ClonesProducedUnits\" trait will produce a free duplicate of me.")] [Desc("Actors with the \"ClonesProducedUnits\" trait will produce a free duplicate of me.")]
public class CloneableInfo : TraitInfo<Cloneable> public class CloneableInfo : TraitInfo<Cloneable>

View File

@@ -13,10 +13,9 @@ using System.Collections.Generic;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Activities;
using OpenRA.Mods.RA.Effects; using OpenRA.Mods.RA.Effects;
using OpenRA.Mods.RA.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA.Traits
{ {
[Desc("This unit can spawn and eject other actors while flying.")] [Desc("This unit can spawn and eject other actors while flying.")]
public class ParaDropInfo : ITraitInfo, Requires<CargoInfo> public class ParaDropInfo : ITraitInfo, Requires<CargoInfo>

View File

@@ -10,10 +10,9 @@
using OpenRA.Mods.Common.Effects; using OpenRA.Mods.Common.Effects;
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 namespace OpenRA.Mods.RA.Traits
{ {
[Desc("Can be paradropped by a ParaDrop actor.")] [Desc("Can be paradropped by a ParaDrop actor.")]
class ParachutableInfo : ITraitInfo class ParachutableInfo : ITraitInfo

View File

@@ -12,6 +12,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Activities;
namespace OpenRA.Mods.RA.Traits namespace OpenRA.Mods.RA.Traits

View File

@@ -11,6 +11,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.RA.Effects; using OpenRA.Mods.RA.Effects;
using OpenRA.Traits; using OpenRA.Traits;

View File

@@ -13,7 +13,7 @@ using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA.Traits
{ {
public class TransformOnPassengerInfo : ITraitInfo public class TransformOnPassengerInfo : ITraitInfo
{ {

View File

@@ -14,6 +14,7 @@ using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits; using OpenRA.Mods.Common.Traits;
using OpenRA.Mods.Common.Widgets;
using OpenRA.Mods.RA.Traits; using OpenRA.Mods.RA.Traits;
using OpenRA.Network; using OpenRA.Network;
using OpenRA.Traits; using OpenRA.Traits;