Merge pull request #6963 from reaperrr/ra-reorg01
Initial step towards reorganising namespace/folder structure of Mods.*
This commit is contained in:
@@ -70,18 +70,18 @@
|
||||
<Compile Include="Activities\HarvesterDockSequence.cs" />
|
||||
<Compile Include="CncLoadScreen.cs" />
|
||||
<Compile Include="Effects\IonCannon.cs" />
|
||||
<Compile Include="IonCannonPower.cs" />
|
||||
<Compile Include="PoisonedByTiberium.cs" />
|
||||
<Compile Include="ProductionAirdrop.cs" />
|
||||
<Compile Include="SpawnViceroid.cs" />
|
||||
<Compile Include="TiberiumRefinery.cs" />
|
||||
<Compile Include="Traits\Buildings\ProductionAirdrop.cs" />
|
||||
<Compile Include="Traits\Buildings\TiberiumRefinery.cs" />
|
||||
<Compile Include="Traits\PoisonedByTiberium.cs" />
|
||||
<Compile Include="Traits\Render\RenderGunboat.cs" />
|
||||
<Compile Include="Traits\Render\WithCargo.cs" />
|
||||
<Compile Include="Traits\Render\WithDeliveryAnimation.cs" />
|
||||
<Compile Include="Traits\Render\WithFire.cs" />
|
||||
<Compile Include="Traits\Render\WithRoof.cs" />
|
||||
<Compile Include="Traits\SpawnViceroid.cs" />
|
||||
<Compile Include="Traits\SupportPowers\IonCannonPower.cs" />
|
||||
<Compile Include="Widgets\Logic\CncMainMenuLogic.cs" />
|
||||
<Compile Include="Widgets\Logic\ProductionTabsLogic.cs" />
|
||||
<Compile Include="Render\RenderGunboat.cs" />
|
||||
<Compile Include="Render\WithCargo.cs" />
|
||||
<Compile Include="Render\WithDeliveryAnimation.cs" />
|
||||
<Compile Include="Render\WithFire.cs" />
|
||||
<Compile Include="Render\WithRoof.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
[Desc("Deliver the unit in production via skylift.")]
|
||||
public class ProductionAirdropInfo : ProductionInfo
|
||||
@@ -11,7 +11,7 @@
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
public class TiberiumRefineryInfo : OreRefineryInfo
|
||||
{
|
||||
@@ -13,7 +13,7 @@ using OpenRA.Traits;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.GameRules;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
class PoisonedByTiberiumInfo : ITraitInfo
|
||||
{
|
||||
@@ -15,7 +15,7 @@ using OpenRA.Graphics;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
[Desc("Renders the cargo loaded into the unit.")]
|
||||
public class WithCargoInfo : ITraitInfo, Requires<CargoInfo>, Requires<IBodyOrientationInfo>
|
||||
@@ -12,7 +12,7 @@ using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
[Desc("Renders a flame sprite on top of the actor.")]
|
||||
class WithFireInfo : ITraitInfo, Requires<RenderSpritesInfo>
|
||||
@@ -12,7 +12,7 @@ using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
[Desc("Provides an overlay for the Tiberian Dawn hover craft.")]
|
||||
public class WithRoofInfo : ITraitInfo, Requires<RenderSpritesInfo>
|
||||
@@ -12,7 +12,7 @@ using System.Linq;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
class SpawnViceroidInfo : ITraitInfo
|
||||
{
|
||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Cnc
|
||||
namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
class IonCannonPowerInfo : SupportPowerInfo
|
||||
{
|
||||
@@ -13,6 +13,7 @@ using System.Linq;
|
||||
using OpenRA.Effects;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Effects
|
||||
|
||||
@@ -79,40 +79,40 @@
|
||||
<Compile Include="Graphics\VoxelRenderable.cs" />
|
||||
<Compile Include="LoadWidgetAtGameStart.cs" />
|
||||
<Compile Include="ModChooserLoadScreen.cs" />
|
||||
<Compile Include="Modifiers\DisabledOverlay.cs" />
|
||||
<Compile Include="Modifiers\HiddenUnderFog.cs" />
|
||||
<Compile Include="Modifiers\UpgradeOverlay.cs" />
|
||||
<Compile Include="NullLoadScreen.cs" />
|
||||
<Compile Include="Orders\DeployOrderTargeter.cs" />
|
||||
<Compile Include="Orders\EnterAlliedActorTargeter.cs" />
|
||||
<Compile Include="Orders\UnitOrderTargeter.cs" />
|
||||
<Compile Include="PaletteEffects\CloakPaletteEffect.cs" />
|
||||
<Compile Include="PaletteEffects\LightPaletteRotator.cs" />
|
||||
<Compile Include="PaletteEffects\MenuPaletteEffect.cs" />
|
||||
<Compile Include="PaletteEffects\NukePaletteEffect.cs" />
|
||||
<Compile Include="PaletteEffects\WaterPaletteRotation.cs" />
|
||||
<Compile Include="ServerTraits\ColorValidator.cs" />
|
||||
<Compile Include="ServerTraits\LobbyCommands.cs" />
|
||||
<Compile Include="ServerTraits\LobbySettingsNotification.cs" />
|
||||
<Compile Include="ServerTraits\MasterServerPinger.cs" />
|
||||
<Compile Include="ServerTraits\PlayerPinger.cs" />
|
||||
<Compile Include="Traits\BlocksBullets.cs" />
|
||||
<Compile Include="Traits\Immobile.cs" />
|
||||
<Compile Include="Traits\Burns.cs" />
|
||||
<Compile Include="Traits\CustomBuildTimeValue.cs" />
|
||||
<Compile Include="Traits\CustomSellValue.cs" />
|
||||
<Compile Include="Traits\Demolishable.cs" />
|
||||
<Compile Include="Traits\Immobile.cs" />
|
||||
<Compile Include="Traits\JamsMissiles.cs" />
|
||||
<Compile Include="Traits\ProvidesRadar.cs" />
|
||||
<Compile Include="Traits\RallyPoint.cs" />
|
||||
<Compile Include="Traits\ShakeOnDeath.cs" />
|
||||
<Compile Include="Traits\Modifiers\DisabledOverlay.cs" />
|
||||
<Compile Include="Traits\Modifiers\HiddenUnderFog.cs" />
|
||||
<Compile Include="Traits\Modifiers\UpgradeOverlay.cs" />
|
||||
<Compile Include="Traits\PaletteEffects\CloakPaletteEffect.cs" />
|
||||
<Compile Include="Traits\PaletteEffects\LightPaletteRotator.cs" />
|
||||
<Compile Include="Traits\PaletteEffects\MenuPaletteEffect.cs" />
|
||||
<Compile Include="Traits\PaletteEffects\NukePaletteEffect.cs" />
|
||||
<Compile Include="Traits\PaletteEffects\WaterPaletteRotation.cs" />
|
||||
<Compile Include="Traits\Power\AffectedByPowerOutage.cs" />
|
||||
<Compile Include="Traits\Power\CanPowerDown.cs" />
|
||||
<Compile Include="Traits\Power\Player\PowerManager.cs" />
|
||||
<Compile Include="Traits\Power\Power.cs" />
|
||||
<Compile Include="Traits\Power\RequiresPower.cs" />
|
||||
<Compile Include="Traits\Power\ScalePowerWithHealth.cs" />
|
||||
<Compile Include="Traits\ProvidesRadar.cs" />
|
||||
<Compile Include="Traits\RallyPoint.cs" />
|
||||
<Compile Include="Traits\Render\RenderSprites.cs" />
|
||||
<Compile Include="Traits\ShakeOnDeath.cs" />
|
||||
<Compile Include="Traits\Sound\ActorLostNotification.cs" />
|
||||
<Compile Include="Traits\Sound\AnnounceOnBuild.cs" />
|
||||
<Compile Include="Traits\Sound\AnnounceOnKill.cs" />
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Use together with CanPowerDown/RequiresPower on buildings or Husk for vehicles.")]
|
||||
public class DisabledOverlayInfo : TraitInfo<DisabledOverlay> { }
|
||||
@@ -13,7 +13,7 @@ using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("The actor stays invisible under fog of war.")]
|
||||
public class HiddenUnderFogInfo : TraitInfo<HiddenUnderFog> { }
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Display a colored overlay when a timed upgrade is active.")]
|
||||
public class UpgradeOverlayInfo : ITraitInfo
|
||||
@@ -13,7 +13,7 @@ using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
public class CloakPaletteEffectInfo : TraitInfo<CloakPaletteEffect> { }
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Palette effect used for blinking \"animations\" on actors.")]
|
||||
class LightPaletteRotatorInfo : ITraitInfo
|
||||
@@ -13,7 +13,7 @@ using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Fades the world from/to black at the start/end of the game, and can (optionally) desaturate the world")]
|
||||
public class MenuPaletteEffectInfo : ITraitInfo
|
||||
@@ -13,7 +13,7 @@ using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Apply palette full screen rotations during atom bomb explosions. Add this to the world actor.")]
|
||||
class NukePaletteEffectInfo : TraitInfo<NukePaletteEffect> { }
|
||||
@@ -13,7 +13,7 @@ using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Palette effect used for sprinkle \"animations\" on terrain tiles.")]
|
||||
class WaterPaletteRotationInfo : ITraitInfo
|
||||
@@ -68,24 +68,24 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ThrowsShrapnel.cs" />
|
||||
<Compile Include="DamagedWithoutFoundation.cs" />
|
||||
<Compile Include="SpriteLoaders\R8Loader.cs" />
|
||||
<Compile Include="Render\WithBuildingPlacedOverlay.cs" />
|
||||
<Compile Include="Render\WithCrumbleOverlay.cs" />
|
||||
<Compile Include="Render\WithProductionOverlay.cs" />
|
||||
<Compile Include="Render\WithDockingOverlay.cs" />
|
||||
<Compile Include="Render\WithDeliveryOverlay.cs" />
|
||||
<Compile Include="Traits\Buildings\DamagedWithoutFoundation.cs" />
|
||||
<Compile Include="Traits\Render\WithBuildingPlacedOverlay.cs" />
|
||||
<Compile Include="Traits\Render\WithCrumbleOverlay.cs" />
|
||||
<Compile Include="Traits\Render\WithProductionOverlay.cs" />
|
||||
<Compile Include="Traits\Render\WithDockingOverlay.cs" />
|
||||
<Compile Include="Traits\Render\WithDeliveryOverlay.cs" />
|
||||
<Compile Include="Traits\ThrowsShrapnel.cs" />
|
||||
<Compile Include="Traits\World\ChooseBuildTabOnSelect.cs" />
|
||||
<Compile Include="Traits\World\PaletteFromR8.cs" />
|
||||
<Compile Include="Traits\World\FogPaletteFromR8.cs" />
|
||||
<Compile Include="Traits\World\D2kResourceLayer.cs" />
|
||||
<Compile Include="Traits\World\PaletteFromScaledPalette.cs" />
|
||||
<Compile Include="Widgets\MoneyBinWidget.cs" />
|
||||
<Compile Include="Widgets\SupportPowerBinWidget.cs" />
|
||||
<Compile Include="Widgets\BuildPaletteWidget.cs" />
|
||||
<Compile Include="Widgets\SlidingContainerWidget.cs" />
|
||||
<Compile Include="Widgets\Logic\IngameChromeLogic.cs" />
|
||||
<Compile Include="World\ChooseBuildTabOnSelect.cs" />
|
||||
<Compile Include="World\PaletteFromR8.cs" />
|
||||
<Compile Include="World\FogPaletteFromR8.cs" />
|
||||
<Compile Include="World\D2kResourceLayer.cs" />
|
||||
<Compile Include="World\PaletteFromScaledPalette.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Reduces health points over time when the actor is placed on unsafe terrain.")]
|
||||
class DamagedWithoutFoundationInfo : ITraitInfo, Requires<HealthInfo>
|
||||
@@ -13,7 +13,7 @@ using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k.Render
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Rendered when the actor constructed a building.")]
|
||||
public class WithBuildingPlacedOverlayInfo : ITraitInfo, Requires<RenderSpritesInfo>, Requires<IBodyOrientationInfo>
|
||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k.Render
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Rendered together with the \"make\" animation.")]
|
||||
public class WithCrumbleOverlayInfo : ITraitInfo, Requires<RenderSpritesInfo>
|
||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k.Render
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Rendered when ProductionAirdrop is in progress.")]
|
||||
public class WithDeliveryOverlayInfo : ITraitInfo, Requires<RenderSpritesInfo>, Requires<IBodyOrientationInfo>
|
||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k.Render
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Rendered when a harvester is docked.")]
|
||||
public class WithDockingOverlayInfo : ITraitInfo, Requires<RenderSpritesInfo>, Requires<IBodyOrientationInfo>
|
||||
@@ -16,7 +16,7 @@ using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k.Render
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Renders an animation when the Production trait of the actor is activated.",
|
||||
"Works both with per player ClassicProductionQueue and per building ProductionQueue, but needs any of these.")]
|
||||
@@ -12,7 +12,7 @@ using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Throws particles when the actor is destroyed that do damage on impact.")]
|
||||
public class ThrowsShrapnelInfo : ITraitInfo
|
||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
class ChooseBuildTabOnSelectInfo : ITraitInfo
|
||||
{
|
||||
@@ -14,7 +14,7 @@ using System.Linq;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Used to render spice with round borders.")]
|
||||
public class D2kResourceLayerInfo : TraitInfo<D2kResourceLayer> { }
|
||||
@@ -13,7 +13,7 @@ using OpenRA.FileSystem;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
class FogPaletteFromR8Info : ITraitInfo
|
||||
{
|
||||
@@ -13,7 +13,7 @@ using OpenRA.FileSystem;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
class PaletteFromR8Info : ITraitInfo
|
||||
{
|
||||
@@ -12,7 +12,7 @@ using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.D2k
|
||||
namespace OpenRA.Mods.D2k.Traits
|
||||
{
|
||||
[Desc("Create a palette by applying a scale and offset to the colors in another palette.")]
|
||||
class PaletteFromScaledPaletteInfo : ITraitInfo
|
||||
@@ -14,7 +14,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Mods.RA.Move;
|
||||
using OpenRA.Mods.Common.Power;
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Support;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -39,7 +41,7 @@ namespace OpenRA.Mods.RA.AI
|
||||
this.world = bot.world;
|
||||
this.random = bot.random;
|
||||
this.type = type;
|
||||
this.target = Traits.Target.FromActor(target);
|
||||
this.target = OpenRA.Traits.Target.FromActor(target);
|
||||
fsm = new StateMachine();
|
||||
|
||||
switch (type)
|
||||
@@ -68,7 +70,7 @@ namespace OpenRA.Mods.RA.AI
|
||||
public Actor Target
|
||||
{
|
||||
get { return target.Actor; }
|
||||
set { target = Traits.Target.FromActor(value); }
|
||||
set { target = OpenRA.Traits.Target.FromActor(value); }
|
||||
}
|
||||
|
||||
public bool TargetIsValid
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.AI
|
||||
|
||||
@@ -12,7 +12,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
27
OpenRA.Mods.RA/Air/FallsToEarth.cs → OpenRA.Mods.RA/Activities/Air/FallToEarth.cs
Executable file → Normal file
27
OpenRA.Mods.RA/Air/FallsToEarth.cs → OpenRA.Mods.RA/Activities/Air/FallToEarth.cs
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
#region Copyright & License Information
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
@@ -10,31 +10,12 @@
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
class FallsToEarthInfo : ITraitInfo
|
||||
{
|
||||
[WeaponReference]
|
||||
public readonly string Explosion = "UnitExplode";
|
||||
|
||||
public readonly bool Spins = true;
|
||||
public readonly bool Moves = false;
|
||||
public readonly WRange Velocity = new WRange(43);
|
||||
|
||||
public object Create(ActorInitializer init) { return new FallsToEarth(init.self, this); }
|
||||
}
|
||||
|
||||
class FallsToEarth
|
||||
{
|
||||
public FallsToEarth(Actor self, FallsToEarthInfo info)
|
||||
{
|
||||
self.QueueActivity(false, new FallToEarth(self, info));
|
||||
}
|
||||
}
|
||||
|
||||
class FallToEarth : Activity
|
||||
public class FallToEarth : Activity
|
||||
{
|
||||
int acceleration = 0;
|
||||
int spin = 0;
|
||||
3
OpenRA.Mods.RA/Air/Fly.cs → OpenRA.Mods.RA/Activities/Air/Fly.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/Fly.cs → OpenRA.Mods.RA/Activities/Air/Fly.cs
Executable file → Normal file
@@ -9,9 +9,10 @@
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class Fly : Activity
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/FlyAttack.cs → OpenRA.Mods.RA/Activities/Air/FlyAttack.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/FlyAttack.cs → OpenRA.Mods.RA/Activities/Air/FlyAttack.cs
Executable file → Normal file
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class FlyAttack : Activity
|
||||
{
|
||||
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class FlyCircle : Activity
|
||||
{
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
3
OpenRA.Mods.RA/Air/FlyTimed.cs → OpenRA.Mods.RA/Activities/Air/FlyTimed.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/FlyTimed.cs → OpenRA.Mods.RA/Activities/Air/FlyTimed.cs
Executable file → Normal file
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class FlyTimed : Activity
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/HeliAttack.cs → OpenRA.Mods.RA/Activities/Air/HeliAttack.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/HeliAttack.cs → OpenRA.Mods.RA/Activities/Air/HeliAttack.cs
Executable file → Normal file
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class HeliAttack : Activity
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/HeliFly.cs → OpenRA.Mods.RA/Activities/Air/HeliFly.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/HeliFly.cs → OpenRA.Mods.RA/Activities/Air/HeliFly.cs
Executable file → Normal file
@@ -9,9 +9,10 @@
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
class HeliFly : Activity
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/HeliLand.cs → OpenRA.Mods.RA/Activities/Air/HeliLand.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/HeliLand.cs → OpenRA.Mods.RA/Activities/Air/HeliLand.cs
Executable file → Normal file
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
class HeliLand : Activity
|
||||
{
|
||||
4
OpenRA.Mods.RA/Air/HeliReturn.cs → OpenRA.Mods.RA/Activities/Air/HeliReturn.cs
Executable file → Normal file
4
OpenRA.Mods.RA/Air/HeliReturn.cs → OpenRA.Mods.RA/Activities/Air/HeliReturn.cs
Executable file → Normal file
@@ -9,10 +9,10 @@
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class HeliReturn : Activity
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/Land.cs → OpenRA.Mods.RA/Activities/Air/Land.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/Land.cs → OpenRA.Mods.RA/Activities/Air/Land.cs
Executable file → Normal file
@@ -8,9 +8,10 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class Land : Activity
|
||||
{
|
||||
34
OpenRA.Mods.RA/Activities/Air/ResupplyAircraft.cs
Normal file
34
OpenRA.Mods.RA/Activities/Air/ResupplyAircraft.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class ResupplyAircraft : Activity
|
||||
{
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
var aircraft = self.Trait<Aircraft>();
|
||||
var host = aircraft.GetActorBelow();
|
||||
|
||||
if (host == null)
|
||||
return NextActivity;
|
||||
|
||||
return Util.SequenceActivities(
|
||||
aircraft.GetResupplyActivities(host).Append(NextActivity).ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
3
OpenRA.Mods.RA/Air/ReturnToBase.cs → OpenRA.Mods.RA/Activities/Air/ReturnToBase.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/ReturnToBase.cs → OpenRA.Mods.RA/Activities/Air/ReturnToBase.cs
Executable file → Normal file
@@ -10,9 +10,10 @@
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class ReturnToBase : Activity
|
||||
{
|
||||
@@ -9,9 +9,10 @@
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
public class TakeOff : Activity
|
||||
{
|
||||
@@ -13,7 +13,9 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Render;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
@@ -140,7 +142,7 @@ namespace OpenRA.Mods.RA
|
||||
return;
|
||||
|
||||
var pos = self.CenterPosition;
|
||||
var targetYaw = WAngle.FromFacing(Traits.Util.GetFacing(target.CenterPosition - self.CenterPosition, 0));
|
||||
var targetYaw = WAngle.FromFacing(OpenRA.Traits.Util.GetFacing(target.CenterPosition - self.CenterPosition, 0));
|
||||
|
||||
foreach (var a in Armaments)
|
||||
{
|
||||
@@ -160,7 +162,7 @@ namespace OpenRA.Mods.RA
|
||||
var sequence = a.Info.MuzzleSequence;
|
||||
|
||||
if (a.Info.MuzzleSplitFacings > 0)
|
||||
sequence += Traits.Util.QuantizeFacing(muzzleFacing, a.Info.MuzzleSplitFacings).ToString();
|
||||
sequence += OpenRA.Traits.Util.QuantizeFacing(muzzleFacing, a.Info.MuzzleSplitFacings).ToString();
|
||||
|
||||
var muzzleFlash = new AnimationWithOffset(muzzleAnim,
|
||||
() => PortOffset(self, port),
|
||||
|
||||
@@ -13,8 +13,8 @@ using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.Common.Orders;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -12,7 +12,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Effects;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -80,7 +80,20 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Activities\CaptureActor.cs" />
|
||||
<Compile Include="Activities\Hunt.cs" />
|
||||
<Compile Include="Air\TakeOff.cs" />
|
||||
<Compile Include="Activities\Air\FallToEarth.cs" />
|
||||
<Compile Include="Activities\Air\Fly.cs" />
|
||||
<Compile Include="Activities\Air\FlyAttack.cs" />
|
||||
<Compile Include="Activities\Air\FlyCircle.cs" />
|
||||
<Compile Include="Activities\Air\FlyFollow.cs" />
|
||||
<Compile Include="Activities\Air\FlyTimed.cs" />
|
||||
<Compile Include="Activities\Air\HeliAttack.cs" />
|
||||
<Compile Include="Activities\Air\HeliFly.cs" />
|
||||
<Compile Include="Activities\Air\HeliLand.cs" />
|
||||
<Compile Include="Activities\Air\HeliReturn.cs" />
|
||||
<Compile Include="Activities\Air\Land.cs" />
|
||||
<Compile Include="Activities\Air\ResupplyAircraft.cs" />
|
||||
<Compile Include="Activities\Air\ReturnToBase.cs" />
|
||||
<Compile Include="Activities\Air\TakeOff.cs" />
|
||||
<Compile Include="AI\AttackOrFleeFuzzy.cs" />
|
||||
<Compile Include="AI\BaseBuilder.cs" />
|
||||
<Compile Include="AI\HackyAI.cs" />
|
||||
@@ -112,9 +125,6 @@
|
||||
<Compile Include="Activities\UnloadCargo.cs" />
|
||||
<Compile Include="Activities\Wait.cs" />
|
||||
<Compile Include="ActorExts.cs" />
|
||||
<Compile Include="Air\Aircraft.cs" />
|
||||
<Compile Include="Air\AttackHeli.cs" />
|
||||
<Compile Include="Air\AttackPlane.cs" />
|
||||
<Compile Include="AI\SupportPowerDecision.cs" />
|
||||
<Compile Include="Crates\DuplicateUnitCrateAction.cs" />
|
||||
<Compile Include="Effects\GpsSatellite.cs" />
|
||||
@@ -126,21 +136,6 @@
|
||||
<Compile Include="Infiltration\InfiltrateForPowerOutage.cs" />
|
||||
<Compile Include="Player\PlaceBeacon.cs" />
|
||||
<Compile Include="EjectOnDeath.cs" />
|
||||
<Compile Include="Air\FallsToEarth.cs" />
|
||||
<Compile Include="Air\Fly.cs" />
|
||||
<Compile Include="Air\FlyAttack.cs" />
|
||||
<Compile Include="Air\FlyCircle.cs" />
|
||||
<Compile Include="Air\FlyTimed.cs" />
|
||||
<Compile Include="Air\HeliAttack.cs" />
|
||||
<Compile Include="Air\HeliFly.cs" />
|
||||
<Compile Include="Air\HeliLand.cs" />
|
||||
<Compile Include="Air\HeliReturn.cs" />
|
||||
<Compile Include="Air\Helicopter.cs" />
|
||||
<Compile Include="Air\Land.cs" />
|
||||
<Compile Include="Air\Plane.cs" />
|
||||
<Compile Include="Air\ReturnOnIdle.cs" />
|
||||
<Compile Include="Air\ReturnToBase.cs" />
|
||||
<Compile Include="Air\TargetableAircraft.cs" />
|
||||
<Compile Include="AI\RushFuzzy.cs" />
|
||||
<Compile Include="AI\StateMachine.cs" />
|
||||
<Compile Include="AppearsOnRadar.cs" />
|
||||
@@ -306,6 +301,15 @@
|
||||
<Compile Include="TargetableUnit.cs" />
|
||||
<Compile Include="ThrowsParticle.cs" />
|
||||
<Compile Include="TraitsInterfaces.cs" />
|
||||
<Compile Include="Traits\Air\Aircraft.cs" />
|
||||
<Compile Include="Traits\Air\AttackHeli.cs" />
|
||||
<Compile Include="Traits\Air\AttackPlane.cs" />
|
||||
<Compile Include="Traits\Air\FlyAwayOnIdle.cs" />
|
||||
<Compile Include="Traits\Air\FallsToEarth.cs" />
|
||||
<Compile Include="Traits\Air\Helicopter.cs" />
|
||||
<Compile Include="Traits\Air\Plane.cs" />
|
||||
<Compile Include="Traits\Air\ReturnOnIdle.cs" />
|
||||
<Compile Include="Traits\Air\TargetableAircraft.cs" />
|
||||
<Compile Include="TransformOnCapture.cs" />
|
||||
<Compile Include="TransformOnPassenger.cs" />
|
||||
<Compile Include="Transforms.cs" />
|
||||
@@ -381,7 +385,6 @@
|
||||
<Compile Include="World\PathfinderDebugOverlay.cs" />
|
||||
<Compile Include="AttackBomber.cs" />
|
||||
<Compile Include="Render\WithCrateBody.cs" />
|
||||
<Compile Include="Activities\FlyFollow.cs" />
|
||||
<Compile Include="Widgets\Logic\GameTimerLogic.cs" />
|
||||
<Compile Include="Widgets\Logic\ReplayControlBarLogic.cs" />
|
||||
<Compile Include="World\BuildableTerrainLayer.cs" />
|
||||
@@ -428,7 +431,6 @@
|
||||
<Compile Include="Render\WithActiveAnimation.cs" />
|
||||
<Compile Include="SupportPowers\SpawnActorPower.cs" />
|
||||
<Compile Include="Render\RenderSimple.cs" />
|
||||
<Compile Include="Air\FlyAwayOnIdle.cs" />
|
||||
<Compile Include="Buildings\ClonesProducedUnits.cs" />
|
||||
<Compile Include="Cloneable.cs" />
|
||||
<Compile Include="Widgets\ProductionPaletteWidget.cs" />
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.RA.Effects;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Render
|
||||
@@ -79,7 +80,7 @@ namespace OpenRA.Mods.RA.Render
|
||||
return;
|
||||
|
||||
if (a.Info.MuzzleSplitFacings > 0)
|
||||
sequence += Traits.Util.QuantizeFacing(getFacing(), a.Info.MuzzleSplitFacings).ToString();
|
||||
sequence += OpenRA.Traits.Util.QuantizeFacing(getFacing(), a.Info.MuzzleSplitFacings).ToString();
|
||||
|
||||
visible[barrel] = true;
|
||||
anims[barrel].Animation.PlayThen(sequence, () => visible[barrel] = false);
|
||||
|
||||
@@ -12,7 +12,8 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Render
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
using System.Linq;
|
||||
using Eluant;
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Primitives;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ using OpenRA.Traits;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Effects;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Scripting
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
using System.Linq;
|
||||
using Eluant;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Scripting
|
||||
{
|
||||
@@ -78,7 +79,7 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
[Desc("Expands the given footprint one step along the coordinate axes, and (if requested) diagonals.")]
|
||||
public CPos[] ExpandFootprint(CPos[] footprint, bool allowDiagonal)
|
||||
{
|
||||
return Traits.Util.ExpandFootprint(footprint, allowDiagonal).ToArray();
|
||||
return Util.ExpandFootprint(footprint, allowDiagonal).ToArray();
|
||||
}
|
||||
|
||||
[Desc("Returns a random integer x in the range low <= x < high.")]
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common.Effects;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common.Effects;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Air;
|
||||
using OpenRA.Mods.RA.Traits;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
|
||||
@@ -12,12 +12,13 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common.Orders;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
public class AircraftInfo : ITraitInfo, IFacingInfo, IOccupySpaceInfo, UsesInit<LocationInit>, UsesInit<FacingInit>
|
||||
{
|
||||
@@ -296,21 +297,6 @@ namespace OpenRA.Mods.RA.Air
|
||||
}
|
||||
}
|
||||
|
||||
public class ResupplyAircraft : Activity
|
||||
{
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
var aircraft = self.Trait<Aircraft>();
|
||||
var host = aircraft.GetActorBelow();
|
||||
|
||||
if (host == null)
|
||||
return NextActivity;
|
||||
|
||||
return Util.SequenceActivities(
|
||||
aircraft.GetResupplyActivities(host).Append(NextActivity).ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
class AircraftMoveOrderTargeter : IOrderTargeter
|
||||
{
|
||||
public string OrderID { get { return "Move"; } }
|
||||
4
OpenRA.Mods.RA/Air/AttackHeli.cs → OpenRA.Mods.RA/Traits/Air/AttackHeli.cs
Executable file → Normal file
4
OpenRA.Mods.RA/Air/AttackHeli.cs → OpenRA.Mods.RA/Traits/Air/AttackHeli.cs
Executable file → Normal file
@@ -8,9 +8,11 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
class AttackHeliInfo : AttackFrontalInfo
|
||||
{
|
||||
4
OpenRA.Mods.RA/Air/AttackPlane.cs → OpenRA.Mods.RA/Traits/Air/AttackPlane.cs
Executable file → Normal file
4
OpenRA.Mods.RA/Air/AttackPlane.cs → OpenRA.Mods.RA/Traits/Air/AttackPlane.cs
Executable file → Normal file
@@ -8,9 +8,11 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
class AttackPlaneInfo : AttackFrontalInfo
|
||||
{
|
||||
38
OpenRA.Mods.RA/Traits/Air/FallsToEarth.cs
Normal file
38
OpenRA.Mods.RA/Traits/Air/FallsToEarth.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
public class FallsToEarthInfo : ITraitInfo
|
||||
{
|
||||
[WeaponReference]
|
||||
public readonly string Explosion = "UnitExplode";
|
||||
|
||||
public readonly bool Spins = true;
|
||||
public readonly bool Moves = false;
|
||||
public readonly WRange Velocity = new WRange(43);
|
||||
|
||||
public object Create(ActorInitializer init) { return new FallsToEarth(init.self, this); }
|
||||
}
|
||||
|
||||
public class FallsToEarth
|
||||
{
|
||||
public FallsToEarth(Actor self, FallsToEarthInfo info)
|
||||
{
|
||||
self.QueueActivity(false, new FallToEarth(self, info));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,11 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
[Desc("Leave the map when idle.")]
|
||||
class FlyAwayOnIdleInfo : TraitInfo<FlyAwayOnIdle> { }
|
||||
@@ -12,10 +12,11 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
class HelicopterInfo : AircraftInfo, IMoveInfo
|
||||
{
|
||||
@@ -10,10 +10,11 @@
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
public class PlaneInfo : AircraftInfo, IMoveInfo
|
||||
{
|
||||
3
OpenRA.Mods.RA/Air/ReturnOnIdle.cs → OpenRA.Mods.RA/Traits/Air/ReturnOnIdle.cs
Executable file → Normal file
3
OpenRA.Mods.RA/Air/ReturnOnIdle.cs → OpenRA.Mods.RA/Traits/Air/ReturnOnIdle.cs
Executable file → Normal file
@@ -9,11 +9,12 @@
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
[Desc("Return to a player owned RearmBuildings. If none available, head back to base and circle over it.")]
|
||||
class ReturnOnIdleInfo : TraitInfo<ReturnOnIdle> { }
|
||||
6
OpenRA.Mods.RA/Air/TargetableAircraft.cs → OpenRA.Mods.RA/Traits/Air/TargetableAircraft.cs
Executable file → Normal file
6
OpenRA.Mods.RA/Air/TargetableAircraft.cs → OpenRA.Mods.RA/Traits/Air/TargetableAircraft.cs
Executable file → Normal file
@@ -8,7 +8,11 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
public class TargetableAircraftInfo : TargetableUnitInfo
|
||||
{
|
||||
@@ -11,7 +11,7 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Mods.RA.Scripting;
|
||||
using OpenRA.Network;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
using System;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Mods.Common.Widgets;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
|
||||
@@ -55,12 +55,12 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ShroudPalette.cs" />
|
||||
<Compile Include="Activities\VoxelHarvesterDockSequence.cs" />
|
||||
<Compile Include="TiberianSunRefinery.cs" />
|
||||
<Compile Include="Render\WithVoxelWalkerBody.cs" />
|
||||
<Compile Include="Render\WithVoxelUnloadBody.cs" />
|
||||
<Compile Include="SpriteLoaders\TmpTSLoader.cs" />
|
||||
<Compile Include="Traits\Buildings\TiberianSunRefinery.cs" />
|
||||
<Compile Include="Traits\Render\WithVoxelWalkerBody.cs" />
|
||||
<Compile Include="Traits\Render\WithVoxelUnloadBody.cs" />
|
||||
<Compile Include="Traits\World\ShroudPalette.cs" />
|
||||
<Compile Include="UtilityCommands\LegacyTilesetImporter.cs" />
|
||||
</ItemGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
using OpenRA.Mods.RA;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.TS
|
||||
namespace OpenRA.Mods.TS.Traits
|
||||
{
|
||||
public class TiberianSunRefineryInfo : OreRefineryInfo
|
||||
{
|
||||
0
OpenRA.Mods.TS/Render/WithVoxelUnloadBody.cs → OpenRA.Mods.TS/Traits/Render/WithVoxelUnloadBody.cs
Executable file → Normal file
0
OpenRA.Mods.TS/Render/WithVoxelUnloadBody.cs → OpenRA.Mods.TS/Traits/Render/WithVoxelUnloadBody.cs
Executable file → Normal file
@@ -13,7 +13,7 @@ using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.TS
|
||||
namespace OpenRA.Mods.TS.Traits
|
||||
{
|
||||
[Desc("Adds the hard-coded shroud palette to the game")]
|
||||
class TSShroudPaletteInfo : ITraitInfo
|
||||
Reference in New Issue
Block a user