move projectile effects into mod

This commit is contained in:
Bob
2010-07-08 16:04:18 +12:00
parent 7a738ed6af
commit bd74b29ea3
10 changed files with 19 additions and 14 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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" />

View File

@@ -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
{ {

View 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
{ {

View 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;
} }

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -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" />