move projectile effects into mod
This commit is contained in:
@@ -24,7 +24,7 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Effects
|
||||||
{
|
{
|
||||||
class Smoke : IEffect
|
public class Smoke : IEffect
|
||||||
{
|
{
|
||||||
readonly int2 pos;
|
readonly int2 pos;
|
||||||
readonly Animation anim;
|
readonly Animation anim;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ using System.Xml;
|
|||||||
|
|
||||||
namespace OpenRA.Graphics
|
namespace OpenRA.Graphics
|
||||||
{
|
{
|
||||||
class CursorSequence
|
public class CursorSequence
|
||||||
{
|
{
|
||||||
readonly int start, length;
|
readonly int start, length;
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ using OpenRA.FileFormats;
|
|||||||
|
|
||||||
namespace OpenRA.Graphics
|
namespace OpenRA.Graphics
|
||||||
{
|
{
|
||||||
static class SequenceProvider
|
public static class SequenceProvider
|
||||||
{
|
{
|
||||||
static Dictionary<string, Dictionary<string, Sequence>> units;
|
static Dictionary<string, Dictionary<string, Sequence>> units;
|
||||||
static Dictionary<string, CursorSequence> cursors;
|
static Dictionary<string, CursorSequence> cursors;
|
||||||
|
|||||||
@@ -77,7 +77,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Chat.cs" />
|
<Compile Include="Chat.cs" />
|
||||||
<Compile Include="Chrome.cs" />
|
<Compile Include="Chrome.cs" />
|
||||||
<Compile Include="Effects\GravityBomb.cs" />
|
|
||||||
<Compile Include="GameRules\WeaponInfo.cs" />
|
<Compile Include="GameRules\WeaponInfo.cs" />
|
||||||
<Compile Include="Group.cs" />
|
<Compile Include="Group.cs" />
|
||||||
<Compile Include="Orders\GenericSelectTarget.cs" />
|
<Compile Include="Orders\GenericSelectTarget.cs" />
|
||||||
@@ -106,11 +105,9 @@
|
|||||||
<Compile Include="Combat.cs" />
|
<Compile Include="Combat.cs" />
|
||||||
<Compile Include="Effects\DelayedAction.cs" />
|
<Compile Include="Effects\DelayedAction.cs" />
|
||||||
<Compile Include="Effects\FlashTarget.cs" />
|
<Compile Include="Effects\FlashTarget.cs" />
|
||||||
<Compile Include="Effects\LaserZap.cs" />
|
|
||||||
<Compile Include="Effects\MoveFlash.cs" />
|
<Compile Include="Effects\MoveFlash.cs" />
|
||||||
<Compile Include="Effects\RepairIndicator.cs" />
|
<Compile Include="Effects\RepairIndicator.cs" />
|
||||||
<Compile Include="Effects\Smoke.cs" />
|
<Compile Include="Effects\Smoke.cs" />
|
||||||
<Compile Include="Effects\TeslaZap.cs" />
|
|
||||||
<Compile Include="Exts.cs" />
|
<Compile Include="Exts.cs" />
|
||||||
<Compile Include="GameRules\ActorInfo.cs" />
|
<Compile Include="GameRules\ActorInfo.cs" />
|
||||||
<Compile Include="GameRules\TechTree.cs" />
|
<Compile Include="GameRules\TechTree.cs" />
|
||||||
@@ -122,7 +119,6 @@
|
|||||||
<Compile Include="Graphics\Minimap.cs" />
|
<Compile Include="Graphics\Minimap.cs" />
|
||||||
<Compile Include="Graphics\SpriteFont.cs" />
|
<Compile Include="Graphics\SpriteFont.cs" />
|
||||||
<Compile Include="Network\Connection.cs" />
|
<Compile Include="Network\Connection.cs" />
|
||||||
<Compile Include="Effects\Missile.cs" />
|
|
||||||
<Compile Include="Network\OrderIO.cs" />
|
<Compile Include="Network\OrderIO.cs" />
|
||||||
<Compile Include="Network\OrderManager.cs" />
|
<Compile Include="Network\OrderManager.cs" />
|
||||||
<Compile Include="PathSearch.cs" />
|
<Compile Include="PathSearch.cs" />
|
||||||
@@ -143,7 +139,6 @@
|
|||||||
<Compile Include="Traits\Activities\Attack.cs" />
|
<Compile Include="Traits\Activities\Attack.cs" />
|
||||||
<Compile Include="Traits\Activities\TransformIntoActor.cs" />
|
<Compile Include="Traits\Activities\TransformIntoActor.cs" />
|
||||||
<Compile Include="Actor.cs" />
|
<Compile Include="Actor.cs" />
|
||||||
<Compile Include="Effects\Bullet.cs" />
|
|
||||||
<Compile Include="Controller.cs" />
|
<Compile Include="Controller.cs" />
|
||||||
<Compile Include="Cursor.cs" />
|
<Compile Include="Cursor.cs" />
|
||||||
<Compile Include="Effects\Explosion.cs" />
|
<Compile Include="Effects\Explosion.cs" />
|
||||||
|
|||||||
@@ -20,11 +20,12 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
public class BulletInfo : IProjectileInfo
|
public class BulletInfo : IProjectileInfo
|
||||||
{
|
{
|
||||||
3
OpenRA.Game/Effects/GravityBomb.cs → OpenRA.Mods.RA/Effects/GravityBomb.cs
Normal file → Executable file
3
OpenRA.Game/Effects/GravityBomb.cs → OpenRA.Mods.RA/Effects/GravityBomb.cs
Normal file → Executable file
@@ -19,11 +19,12 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
public class GravityBombInfo : IProjectileInfo
|
public class GravityBombInfo : IProjectileInfo
|
||||||
{
|
{
|
||||||
5
OpenRA.Game/Effects/LaserZap.cs → OpenRA.Mods.RA/Effects/LaserZap.cs
Normal file → Executable file
5
OpenRA.Game/Effects/LaserZap.cs → OpenRA.Mods.RA/Effects/LaserZap.cs
Normal file → Executable file
@@ -20,10 +20,11 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
class LaserZapInfo : IProjectileInfo
|
class LaserZapInfo : IProjectileInfo
|
||||||
{
|
{
|
||||||
@@ -75,7 +76,7 @@ namespace OpenRA.Effects
|
|||||||
float2 norm = new float2(-unit.Y, unit.X);
|
float2 norm = new float2(-unit.Y, unit.X);
|
||||||
|
|
||||||
for (int i = -radius; i < radius; i++)
|
for (int i = -radius; i < radius; i++)
|
||||||
Game.world.WorldRenderer.lineRenderer.DrawLine(args.src + i * norm, args.dest + i * norm, rc, rc);
|
Game.world.WorldRenderer.DrawLine(args.src + i * norm, args.dest + i * norm, rc, rc);
|
||||||
|
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
@@ -21,11 +21,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
class MissileInfo : IProjectileInfo
|
class MissileInfo : IProjectileInfo
|
||||||
{
|
{
|
||||||
@@ -21,11 +21,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
class TeslaZapInfo : IProjectileInfo
|
class TeslaZapInfo : IProjectileInfo
|
||||||
{
|
{
|
||||||
@@ -71,6 +71,11 @@
|
|||||||
<Compile Include="Activities\UnloadCargo.cs" />
|
<Compile Include="Activities\UnloadCargo.cs" />
|
||||||
<Compile Include="Activities\Wait.cs" />
|
<Compile Include="Activities\Wait.cs" />
|
||||||
<Compile Include="ConstructionYard.cs" />
|
<Compile Include="ConstructionYard.cs" />
|
||||||
|
<Compile Include="Effects\Bullet.cs" />
|
||||||
|
<Compile Include="Effects\GravityBomb.cs" />
|
||||||
|
<Compile Include="Effects\LaserZap.cs" />
|
||||||
|
<Compile Include="Effects\Missile.cs" />
|
||||||
|
<Compile Include="Effects\TeslaZap.cs" />
|
||||||
<Compile Include="Player\ActorGroupProxy.cs" />
|
<Compile Include="Player\ActorGroupProxy.cs" />
|
||||||
<Compile Include="Aircraft.cs" />
|
<Compile Include="Aircraft.cs" />
|
||||||
<Compile Include="SupportPowers\AirstrikePower.cs" />
|
<Compile Include="SupportPowers\AirstrikePower.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user