move crate support to ra
This commit is contained in:
@@ -79,7 +79,6 @@ namespace OpenRA
|
|||||||
|
|
||||||
if (mi.Button == MouseButton.Left && mi.Event == MouseInputEvent.Down)
|
if (mi.Button == MouseButton.Left && mi.Event == MouseInputEvent.Down)
|
||||||
{
|
{
|
||||||
if (!(orderGenerator is PlaceBuildingOrderGenerator))
|
|
||||||
dragStart = dragEnd = xy;
|
dragStart = dragEnd = xy;
|
||||||
ApplyOrders(world, xy, mi);
|
ApplyOrders(world, xy, mi);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -219,7 +219,6 @@
|
|||||||
<Compile Include="Traits\Building.cs" />
|
<Compile Include="Traits\Building.cs" />
|
||||||
<Compile Include="Traits\World\BuildingInfluence.cs" />
|
<Compile Include="Traits\World\BuildingInfluence.cs" />
|
||||||
<Compile Include="Traits\CanPowerDown.cs" />
|
<Compile Include="Traits\CanPowerDown.cs" />
|
||||||
<Compile Include="Traits\Crate.cs" />
|
|
||||||
<Compile Include="Traits\Fake.cs" />
|
<Compile Include="Traits\Fake.cs" />
|
||||||
<Compile Include="Traits\Helicopter.cs" />
|
<Compile Include="Traits\Helicopter.cs" />
|
||||||
<Compile Include="Traits\Modifiers\InvisibleToOthers.cs" />
|
<Compile Include="Traits\Modifiers\InvisibleToOthers.cs" />
|
||||||
@@ -291,8 +290,6 @@
|
|||||||
<Compile Include="Widgets\LabelWidget.cs" />
|
<Compile Include="Widgets\LabelWidget.cs" />
|
||||||
<Compile Include="Widgets\CheckboxWidget.cs" />
|
<Compile Include="Widgets\CheckboxWidget.cs" />
|
||||||
<Compile Include="Traits\Activities\Wait.cs" />
|
<Compile Include="Traits\Activities\Wait.cs" />
|
||||||
<Compile Include="Traits\CrateAction.cs" />
|
|
||||||
<Compile Include="Effects\CrateEffect.cs" />
|
|
||||||
<Compile Include="Traits\World\GlobalDefaults.cs" />
|
<Compile Include="Traits\World\GlobalDefaults.cs" />
|
||||||
<Compile Include="Traits\RepairsUnits.cs" />
|
<Compile Include="Traits\RepairsUnits.cs" />
|
||||||
<Compile Include="Traits\World\BibLayer.cs" />
|
<Compile Include="Traits\World\BibLayer.cs" />
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Crates left to implement:
|
* Crates left to implement:
|
||||||
@@ -36,7 +37,7 @@ Invulnerability=3,INVULBOX,1.0 ; invulnerability (duration in minutes)
|
|||||||
TimeQuake=3,TQUAKE ; time quake
|
TimeQuake=3,TQUAKE ; time quake
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
class CrateInfo : ITraitInfo, ITraitPrerequisite<RenderSimpleInfo>
|
class CrateInfo : ITraitInfo, ITraitPrerequisite<RenderSimpleInfo>
|
||||||
{
|
{
|
||||||
@@ -18,9 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using OpenRA.Effects;
|
using OpenRA.Mods.RA.Effects;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
public class CrateActionInfo : ITraitInfo
|
public class CrateActionInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
@@ -19,10 +19,11 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
class CrateEffect : IEffect
|
class CrateEffect : IEffect
|
||||||
{
|
{
|
||||||
@@ -61,8 +61,11 @@
|
|||||||
<Compile Include="Cargo.cs" />
|
<Compile Include="Cargo.cs" />
|
||||||
<Compile Include="CarpetBomb.cs" />
|
<Compile Include="CarpetBomb.cs" />
|
||||||
<Compile Include="Chronoshiftable.cs" />
|
<Compile Include="Chronoshiftable.cs" />
|
||||||
|
<Compile Include="Crate.cs" />
|
||||||
|
<Compile Include="CrateAction.cs" />
|
||||||
<Compile Include="CrateDrop.cs" />
|
<Compile Include="CrateDrop.cs" />
|
||||||
<Compile Include="Crates\SupportPowerCrateAction.cs" />
|
<Compile Include="Crates\SupportPowerCrateAction.cs" />
|
||||||
|
<Compile Include="Effects\CrateEffect.cs" />
|
||||||
<Compile Include="Effects\NukeLaunch.cs" />
|
<Compile Include="Effects\NukeLaunch.cs" />
|
||||||
<Compile Include="Activities\Harvest.cs" />
|
<Compile Include="Activities\Harvest.cs" />
|
||||||
<Compile Include="EmitInfantryOnSell.cs" />
|
<Compile Include="EmitInfantryOnSell.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user