move ActorGroupProxy to mod; move SupportPower traits into directory
This commit is contained in:
@@ -69,8 +69,9 @@
|
||||
<Compile Include="Activities\Teleport.cs" />
|
||||
<Compile Include="Activities\UnloadCargo.cs" />
|
||||
<Compile Include="Activities\Wait.cs" />
|
||||
<Compile Include="Player\ActorGroupProxy.cs" />
|
||||
<Compile Include="Aircraft.cs" />
|
||||
<Compile Include="AirstrikePower.cs" />
|
||||
<Compile Include="SupportPowers\AirstrikePower.cs" />
|
||||
<Compile Include="AttackFrontal.cs" />
|
||||
<Compile Include="AttackHeli.cs" />
|
||||
<Compile Include="AttackLeap.cs" />
|
||||
@@ -116,7 +117,7 @@
|
||||
<Compile Include="LightPaletteRotator.cs" />
|
||||
<Compile Include="OreRefinery.cs" />
|
||||
<Compile Include="ChronoshiftPaletteEffect.cs" />
|
||||
<Compile Include="ChronoshiftPower.cs" />
|
||||
<Compile Include="SupportPowers\ChronoshiftPower.cs" />
|
||||
<Compile Include="Crates\ArmorUpgradeCrateAction.cs" />
|
||||
<Compile Include="Crates\ExplodeCrateAction.cs" />
|
||||
<Compile Include="Crates\FirepowerUpgradeCrateAction.cs" />
|
||||
@@ -126,14 +127,14 @@
|
||||
<Compile Include="Effects\Parachute.cs" />
|
||||
<Compile Include="Effects\SatelliteLaunch.cs" />
|
||||
<Compile Include="EngineerCapture.cs" />
|
||||
<Compile Include="GpsPower.cs" />
|
||||
<Compile Include="SupportPowers\GpsPower.cs" />
|
||||
<Compile Include="InfiltrateForSonarPulse.cs" />
|
||||
<Compile Include="IronCurtainable.cs" />
|
||||
<Compile Include="IronCurtainPower.cs" />
|
||||
<Compile Include="SupportPowers\IronCurtainPower.cs" />
|
||||
<Compile Include="PaletteFromFile.cs" />
|
||||
<Compile Include="PaletteFromRGBA.cs" />
|
||||
<Compile Include="ParaDrop.cs" />
|
||||
<Compile Include="ParatroopersPower.cs" />
|
||||
<Compile Include="SupportPowers\ParatroopersPower.cs" />
|
||||
<Compile Include="Passenger.cs" />
|
||||
<Compile Include="Plane.cs" />
|
||||
<Compile Include="ProductionSurround.cs" />
|
||||
@@ -161,12 +162,12 @@
|
||||
<Compile Include="SeedsResource.cs" />
|
||||
<Compile Include="SelfHealing.cs" />
|
||||
<Compile Include="ShroudPalette.cs" />
|
||||
<Compile Include="SonarPulsePower.cs" />
|
||||
<Compile Include="SupportPowers\SonarPulsePower.cs" />
|
||||
<Compile Include="SpawnDefaultUnits.cs" />
|
||||
<Compile Include="SpawnMapActors.cs" />
|
||||
<Compile Include="Spy.cs" />
|
||||
<Compile Include="SpyPlanePower.cs" />
|
||||
<Compile Include="NukePower.cs" />
|
||||
<Compile Include="SupportPowers\SpyPlanePower.cs" />
|
||||
<Compile Include="SupportPowers\NukePower.cs" />
|
||||
<Compile Include="TakeCover.cs" />
|
||||
<Compile Include="TeslaInstantKills.cs" />
|
||||
<Compile Include="Crates\ResetRadarCrateAction.cs" />
|
||||
|
||||
27
OpenRA.Mods.RA/Player/ActorGroupProxy.cs
Executable file
27
OpenRA.Mods.RA/Player/ActorGroupProxy.cs
Executable file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
class ActorGroupProxyInfo : TraitInfo<ActorGroupProxy> { }
|
||||
|
||||
class ActorGroupProxy : IResolveOrder
|
||||
{
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
{
|
||||
if (order.OrderString == "CreateGroup")
|
||||
{
|
||||
/* create a group */
|
||||
var actors = order.TargetString.Split(',')
|
||||
.Select(id => uint.Parse(id))
|
||||
.Select(id => self.World.Actors.FirstOrDefault(a => a.ActorID == id))
|
||||
.Where(a => a != null);
|
||||
|
||||
var g = new Group(actors);
|
||||
// g.Dump();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
0
OpenRA.Mods.RA/AirstrikePower.cs → OpenRA.Mods.RA/SupportPowers/AirstrikePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/AirstrikePower.cs → OpenRA.Mods.RA/SupportPowers/AirstrikePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/ChronoshiftPower.cs → OpenRA.Mods.RA/SupportPowers/ChronoshiftPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/ChronoshiftPower.cs → OpenRA.Mods.RA/SupportPowers/ChronoshiftPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/GpsPower.cs → OpenRA.Mods.RA/SupportPowers/GpsPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/GpsPower.cs → OpenRA.Mods.RA/SupportPowers/GpsPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/IronCurtainPower.cs → OpenRA.Mods.RA/SupportPowers/IronCurtainPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/IronCurtainPower.cs → OpenRA.Mods.RA/SupportPowers/IronCurtainPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/NukePower.cs → OpenRA.Mods.RA/SupportPowers/NukePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/NukePower.cs → OpenRA.Mods.RA/SupportPowers/NukePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/ParatroopersPower.cs → OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/ParatroopersPower.cs → OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/SonarPulsePower.cs → OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/SonarPulsePower.cs → OpenRA.Mods.RA/SupportPowers/SonarPulsePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/SpyPlanePower.cs → OpenRA.Mods.RA/SupportPowers/SpyPlanePower.cs
Normal file → Executable file
0
OpenRA.Mods.RA/SpyPlanePower.cs → OpenRA.Mods.RA/SupportPowers/SpyPlanePower.cs
Normal file → Executable file
Reference in New Issue
Block a user