Separate JamsRadar into it's own file.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
24
OpenRA.Mods.Common/Traits/Radar/JamsRadar.cs
Normal file
24
OpenRA.Mods.Common/Traits/Radar/JamsRadar.cs
Normal 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 { }
|
||||||
|
}
|
||||||
@@ -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 { }
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user