Merge pull request #11382 from reaperrr/projectile-streamlining

Moved projectiles to their own namespace and streamlined property names
This commit is contained in:
Oliver Brakmann
2016-06-04 15:00:08 +02:00
19 changed files with 82 additions and 56 deletions

View File

@@ -82,7 +82,7 @@
<Compile Include="Effects\GpsDot.cs" />
<Compile Include="Effects\GpsSatellite.cs" />
<Compile Include="Effects\SatelliteLaunch.cs" />
<Compile Include="Effects\TeslaZap.cs" />
<Compile Include="Projectiles\TeslaZap.cs" />
<Compile Include="Graphics\TeslaZapRenderable.cs" />
<Compile Include="Scripting\Properties\InfiltrateProperties.cs" />
<Compile Include="Scripting\Properties\DisguiseProperties.cs" />

View File

@@ -16,9 +16,9 @@ using OpenRA.Graphics;
using OpenRA.Mods.RA.Graphics;
using OpenRA.Traits;
namespace OpenRA.Mods.RA.Effects
namespace OpenRA.Mods.RA.Projectiles
{
class TeslaZapInfo : IProjectileInfo
public class TeslaZapInfo : IProjectileInfo
{
public readonly string Image = "litning";
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA.Effects
public IEffect Create(ProjectileArgs args) { return new TeslaZap(this, args); }
}
class TeslaZap : IEffect
public class TeslaZap : IEffect
{
readonly ProjectileArgs args;
readonly TeslaZapInfo info;