Separate JamsRadar into it's own file.

This commit is contained in:
Matthias Mailänder
2016-04-02 14:08:58 +02:00
parent 9b9b3474dd
commit 8df7d8b784
3 changed files with 25 additions and 9 deletions

View File

@@ -737,6 +737,7 @@
<Compile Include="Traits\Radar\AppearsOnRadar.cs" /> <Compile Include="Traits\Radar\AppearsOnRadar.cs" />
<Compile Include="Traits\Radar\ProvidesRadar.cs" /> <Compile Include="Traits\Radar\ProvidesRadar.cs" />
<Compile Include="Traits\Radar\RadarColorFromTerrain.cs" /> <Compile Include="Traits\Radar\RadarColorFromTerrain.cs" />
<Compile Include="Traits\Radar\JamsRadar.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>

View File

@@ -0,0 +1,24 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("When an actor with this trait is in range of an actor with ProvidesRadar, it will temporarily disable the radar minimap for the enemy player.")]
public class JamsRadarInfo : TraitInfo<JamsRadar>
{
[Desc("Range for jamming.")]
public readonly WDist Range = WDist.Zero;
}
public class JamsRadar { }
}

View File

@@ -33,13 +33,4 @@ namespace OpenRA.Mods.Common.Traits
> a.Actor.Info.TraitInfo<JamsRadarInfo>().Range.LengthSquared); > a.Actor.Info.TraitInfo<JamsRadarInfo>().Range.LengthSquared);
} }
} }
[Desc("When an actor with this trait is in range of an actor with ProvidesRadar, it will temporarily disable the radar minimap for the enemy player.")]
public class JamsRadarInfo : TraitInfo<JamsRadar>
{
[Desc("Range for jamming.")]
public readonly WDist Range = WDist.Zero;
}
public class JamsRadar { }
} }