Merge pull request #6521 from steelphase-forks/common-graphics
Add Mod.Common Graphics
This commit is contained in:
8
Makefile
8
Makefile
@@ -137,8 +137,8 @@ mod_ra: $(mod_ra_TARGET)
|
|||||||
mod_cnc_SRCS := $(shell find OpenRA.Mods.Cnc/ -iname '*.cs')
|
mod_cnc_SRCS := $(shell find OpenRA.Mods.Cnc/ -iname '*.cs')
|
||||||
mod_cnc_TARGET = mods/cnc/OpenRA.Mods.Cnc.dll
|
mod_cnc_TARGET = mods/cnc/OpenRA.Mods.Cnc.dll
|
||||||
mod_cnc_KIND = library
|
mod_cnc_KIND = library
|
||||||
mod_cnc_DEPS = $(STD_MOD_DEPS) $(mod_ra_TARGET)
|
mod_cnc_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET) $(mod_ra_TARGET)
|
||||||
mod_cnc_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_ra_TARGET)
|
mod_cnc_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET) $(mod_ra_TARGET)
|
||||||
PROGRAMS += mod_cnc
|
PROGRAMS += mod_cnc
|
||||||
mod_cnc: $(mod_cnc_TARGET)
|
mod_cnc: $(mod_cnc_TARGET)
|
||||||
|
|
||||||
@@ -155,8 +155,8 @@ mod_d2k: $(mod_d2k_TARGET)
|
|||||||
mod_ts_SRCS := $(shell find OpenRA.Mods.TS/ -iname '*.cs')
|
mod_ts_SRCS := $(shell find OpenRA.Mods.TS/ -iname '*.cs')
|
||||||
mod_ts_TARGET = mods/ts/OpenRA.Mods.TS.dll
|
mod_ts_TARGET = mods/ts/OpenRA.Mods.TS.dll
|
||||||
mod_ts_KIND = library
|
mod_ts_KIND = library
|
||||||
mod_ts_DEPS = $(STD_MOD_DEPS) $(mod_ra_TARGET)
|
mod_ts_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET) $(mod_ra_TARGET)
|
||||||
mod_ts_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_ra_TARGET)
|
mod_ts_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET) $(mod_ra_TARGET)
|
||||||
PROGRAMS += mod_ts
|
PROGRAMS += mod_ts
|
||||||
mod_ts: $(mod_ts_TARGET)
|
mod_ts: $(mod_ts_TARGET)
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
|||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public interface IActorPreview
|
public interface IActorPreview
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public struct BeamRenderable : IRenderable
|
public struct BeamRenderable : IRenderable
|
||||||
{
|
{
|
||||||
@@ -12,7 +12,7 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public struct ContrailRenderable : IRenderable
|
public struct ContrailRenderable : IRenderable
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public struct RangeCircleRenderable : IRenderable
|
public struct RangeCircleRenderable : IRenderable
|
||||||
{
|
{
|
||||||
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
|||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public class SpriteActorPreview : IActorPreview
|
public class SpriteActorPreview : IActorPreview
|
||||||
{
|
{
|
||||||
@@ -11,31 +11,32 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Render;
|
|
||||||
using OpenRA.Primitives;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public class VoxelPreview : IActorPreview
|
public class VoxelPreview : IActorPreview
|
||||||
{
|
{
|
||||||
readonly VoxelAnimation[] components;
|
readonly VoxelAnimation[] components;
|
||||||
readonly RenderVoxelsInfo rvi;
|
readonly float scale;
|
||||||
|
readonly float[] lightAmbientColor;
|
||||||
|
readonly float[] lightDiffuseColor;
|
||||||
readonly WRot lightSource;
|
readonly WRot lightSource;
|
||||||
readonly WRot camera;
|
readonly WRot camera;
|
||||||
|
|
||||||
readonly PaletteReference colorPalette;
|
readonly PaletteReference colorPalette;
|
||||||
readonly PaletteReference normalsPalette;
|
readonly PaletteReference normalsPalette;
|
||||||
readonly PaletteReference shadowPalette;
|
readonly PaletteReference shadowPalette;
|
||||||
|
|
||||||
readonly WVec offset;
|
readonly WVec offset;
|
||||||
readonly int zOffset;
|
readonly int zOffset;
|
||||||
|
|
||||||
public VoxelPreview(VoxelAnimation[] components, WVec offset, int zOffset, RenderVoxelsInfo rvi, WAngle cameraPitch,
|
public VoxelPreview(VoxelAnimation[] components, WVec offset, int zOffset, float scale, WAngle lightPitch, WAngle lightYaw, float[] lightAmbientColor, float[] lightDiffuseColor, WAngle cameraPitch,
|
||||||
PaletteReference colorPalette, PaletteReference normalsPalette, PaletteReference shadowPalette)
|
PaletteReference colorPalette, PaletteReference normalsPalette, PaletteReference shadowPalette)
|
||||||
{
|
{
|
||||||
this.components = components;
|
this.components = components;
|
||||||
this.rvi = rvi;
|
this.scale = scale;
|
||||||
lightSource = new WRot(WAngle.Zero,new WAngle(256) - rvi.LightPitch, rvi.LightYaw);
|
this.lightAmbientColor = lightAmbientColor;
|
||||||
|
this.lightDiffuseColor = lightDiffuseColor;
|
||||||
|
|
||||||
|
lightSource = new WRot(WAngle.Zero, new WAngle(256) - lightPitch, lightYaw);
|
||||||
camera = new WRot(WAngle.Zero, cameraPitch - new WAngle(256), new WAngle(256));
|
camera = new WRot(WAngle.Zero, cameraPitch - new WAngle(256), new WAngle(256));
|
||||||
|
|
||||||
this.colorPalette = colorPalette;
|
this.colorPalette = colorPalette;
|
||||||
@@ -50,8 +51,8 @@ namespace OpenRA.Mods.RA.Graphics
|
|||||||
|
|
||||||
public IEnumerable<IRenderable> Render(WorldRenderer wr, WPos pos)
|
public IEnumerable<IRenderable> Render(WorldRenderer wr, WPos pos)
|
||||||
{
|
{
|
||||||
yield return new VoxelRenderable(components, pos + offset, zOffset, camera, rvi.Scale,
|
yield return new VoxelRenderable(components, pos + offset, zOffset, camera, this.scale,
|
||||||
lightSource, rvi.LightAmbientColor, rvi.LightDiffuseColor,
|
lightSource, this.lightAmbientColor, this.lightDiffuseColor,
|
||||||
colorPalette, normalsPalette, shadowPalette);
|
colorPalette, normalsPalette, shadowPalette);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Graphics
|
namespace OpenRA.Mods.Common.Graphics
|
||||||
{
|
{
|
||||||
public struct VoxelRenderable : IRenderable
|
public struct VoxelRenderable : IRenderable
|
||||||
{
|
{
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
@@ -25,6 +25,11 @@
|
|||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="Eluant, Version=1.0.5229.27703, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\Eluant.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -32,9 +37,14 @@
|
|||||||
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
||||||
<Project>{0dfb103f-2962-400f-8c6d-e2c28ccba633}</Project>
|
<Project>{0dfb103f-2962-400f-8c6d-e2c28ccba633}</Project>
|
||||||
<Name>OpenRA.Game</Name>
|
<Name>OpenRA.Game</Name>
|
||||||
|
<Private>False</Private>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Graphics\ActorPreview.cs" />
|
||||||
|
<Compile Include="Graphics\BeamRenderable.cs" />
|
||||||
|
<Compile Include="Graphics\ContrailRenderable.cs" />
|
||||||
|
<Compile Include="Graphics\RangeCircleRenderable.cs" />
|
||||||
<Compile Include="ServerTraits\ColorValidator.cs" />
|
<Compile Include="ServerTraits\ColorValidator.cs" />
|
||||||
<Compile Include="ServerTraits\MasterServerPinger.cs" />
|
<Compile Include="ServerTraits\MasterServerPinger.cs" />
|
||||||
<Compile Include="ServerTraits\PlayerPinger.cs" />
|
<Compile Include="ServerTraits\PlayerPinger.cs" />
|
||||||
@@ -54,6 +64,10 @@
|
|||||||
<Compile Include="UtilityCommands\UpgradeMapCommand.cs" />
|
<Compile Include="UtilityCommands\UpgradeMapCommand.cs" />
|
||||||
<Compile Include="UtilityCommands\UpgradeModCommand.cs" />
|
<Compile Include="UtilityCommands\UpgradeModCommand.cs" />
|
||||||
<Compile Include="UtilityCommands\UpgradeRules.cs" />
|
<Compile Include="UtilityCommands\UpgradeRules.cs" />
|
||||||
|
<Compile Include="Graphics\SpriteActorPreview.cs" />
|
||||||
|
<Compile Include="Graphics\TextRenderable.cs" />
|
||||||
|
<Compile Include="Graphics\VoxelActorPreview.cs" />
|
||||||
|
<Compile Include="Graphics\VoxelRenderable.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
344
OpenRA.Mods.Common/Settings.StyleCop
Normal file
344
OpenRA.Mods.Common/Settings.StyleCop
Normal file
@@ -0,0 +1,344 @@
|
|||||||
|
<StyleCopSettings Version="105">
|
||||||
|
<Analyzers>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EnumerationItemsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustContainValidXml">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustMatchElementParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VoidReturnValueMustNotBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustMatchAccessors">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustNotBeEmpty">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustContainWhitespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustMeetCharacterPercentage">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationHeadersMustNotContainBlankLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludedDocumentationXPathDoesNotExist">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludeNodeDoesNotContainValidFileAndPath">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InheritDocMustBeUsedWithInheritingClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustBeSpelledCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMustHaveHeader">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustShowCopyright">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveCopyrightText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustContainFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveValidCompanyText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchTypeName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.SpacingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="TabsMustNotBeUsed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CurlyBracketsMustNotBeOmitted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeSeparatedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustAppearInTheCorrectOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeOrderedByAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseStringEmptyForEmptyStrings">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixLocalCallsWithThis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixCallsCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustFollowComma">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.MaintainabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="AccessModifierMustBeDeclared">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldsMustBePrivate">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
</Analyzers>
|
||||||
|
</StyleCopSettings>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Buildings
|
namespace OpenRA.Mods.RA.Buildings
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using System.Linq;
|
|||||||
using OpenRA.Effects;
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Effects;
|
using OpenRA.Effects;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using OpenRA.Effects;
|
|||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using System.Linq;
|
|||||||
using OpenRA.Effects;
|
using OpenRA.Effects;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Effects
|
namespace OpenRA.Mods.RA.Effects
|
||||||
|
|||||||
@@ -121,7 +121,6 @@
|
|||||||
<Compile Include="AI\SupportPowerDecision.cs" />
|
<Compile Include="AI\SupportPowerDecision.cs" />
|
||||||
<Compile Include="Crates\DuplicateUnitCrateAction.cs" />
|
<Compile Include="Crates\DuplicateUnitCrateAction.cs" />
|
||||||
<Compile Include="Effects\FloatingText.cs" />
|
<Compile Include="Effects\FloatingText.cs" />
|
||||||
<Compile Include="Graphics\TextRenderable.cs" />
|
|
||||||
<Compile Include="Infiltration\InfiltrateForPowerOutage.cs" />
|
<Compile Include="Infiltration\InfiltrateForPowerOutage.cs" />
|
||||||
<Compile Include="Power\AffectedByPowerOutage.cs" />
|
<Compile Include="Power\AffectedByPowerOutage.cs" />
|
||||||
<Compile Include="Power\Power.cs" />
|
<Compile Include="Power\Power.cs" />
|
||||||
@@ -294,7 +293,6 @@
|
|||||||
<Compile Include="Scripting\Properties\GuardProperties.cs" />
|
<Compile Include="Scripting\Properties\GuardProperties.cs" />
|
||||||
<Compile Include="Scripting\Properties\PlayerProperties.cs" />
|
<Compile Include="Scripting\Properties\PlayerProperties.cs" />
|
||||||
<Compile Include="Power\ScalePowerWithHealth.cs" />
|
<Compile Include="Power\ScalePowerWithHealth.cs" />
|
||||||
<Compile Include="ServerTraits\ColorValidator.cs" />
|
|
||||||
<Compile Include="Warheads\DestroyResourceWarhead.cs" />
|
<Compile Include="Warheads\DestroyResourceWarhead.cs" />
|
||||||
<Compile Include="Warheads\CreateEffectWarhead.cs" />
|
<Compile Include="Warheads\CreateEffectWarhead.cs" />
|
||||||
<Compile Include="Warheads\CreateResourceWarhead.cs" />
|
<Compile Include="Warheads\CreateResourceWarhead.cs" />
|
||||||
@@ -533,13 +531,9 @@
|
|||||||
<Compile Include="SupportPowers\SpawnActorPower.cs" />
|
<Compile Include="SupportPowers\SpawnActorPower.cs" />
|
||||||
<Compile Include="Render\RenderSimple.cs" />
|
<Compile Include="Render\RenderSimple.cs" />
|
||||||
<Compile Include="Render\RenderSprites.cs" />
|
<Compile Include="Render\RenderSprites.cs" />
|
||||||
<Compile Include="Graphics\BeamRenderable.cs" />
|
|
||||||
<Compile Include="Graphics\ContrailRenderable.cs" />
|
|
||||||
<Compile Include="Graphics\VoxelRenderable.cs" />
|
|
||||||
<Compile Include="Air\FlyAwayOnIdle.cs" />
|
<Compile Include="Air\FlyAwayOnIdle.cs" />
|
||||||
<Compile Include="Buildings\ClonesProducedUnits.cs" />
|
<Compile Include="Buildings\ClonesProducedUnits.cs" />
|
||||||
<Compile Include="Cloneable.cs" />
|
<Compile Include="Cloneable.cs" />
|
||||||
<Compile Include="Graphics\RangeCircleRenderable.cs" />
|
|
||||||
<Compile Include="Widgets\ProductionPaletteWidget.cs" />
|
<Compile Include="Widgets\ProductionPaletteWidget.cs" />
|
||||||
<Compile Include="Widgets\ProductionTabsWidget.cs" />
|
<Compile Include="Widgets\ProductionTabsWidget.cs" />
|
||||||
<Compile Include="Widgets\ProductionTypeButtonWidget.cs" />
|
<Compile Include="Widgets\ProductionTypeButtonWidget.cs" />
|
||||||
@@ -560,9 +554,6 @@
|
|||||||
<Compile Include="Widgets\LabelWithTooltipWidget.cs" />
|
<Compile Include="Widgets\LabelWithTooltipWidget.cs" />
|
||||||
<Compile Include="ProductionQueueFromSelection.cs" />
|
<Compile Include="ProductionQueueFromSelection.cs" />
|
||||||
<Compile Include="Scripting\Global\MediaGlobal.cs" />
|
<Compile Include="Scripting\Global\MediaGlobal.cs" />
|
||||||
<Compile Include="Graphics\ActorPreview.cs" />
|
|
||||||
<Compile Include="Graphics\SpriteActorPreview.cs" />
|
|
||||||
<Compile Include="Graphics\VoxelActorPreview.cs" />
|
|
||||||
<Compile Include="GlobalUpgradable.cs" />
|
<Compile Include="GlobalUpgradable.cs" />
|
||||||
<Compile Include="Player\GlobalUpgradeManager.cs" />
|
<Compile Include="Player\GlobalUpgradeManager.cs" />
|
||||||
<Compile Include="GainsStatUpgrades.cs" />
|
<Compile Include="GainsStatUpgrades.cs" />
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Buildings;
|
using OpenRA.Mods.RA.Buildings;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Mods.RA.Render;
|
using OpenRA.Mods.RA.Render;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Activities;
|
using OpenRA.Mods.RA.Activities;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Mods.RA.Orders;
|
using OpenRA.Mods.RA.Orders;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Buildings;
|
using OpenRA.Mods.RA.Buildings;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Mods.RA.Effects;
|
using OpenRA.Mods.RA.Effects;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
using OpenRA.Mods.Common.Graphics;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
{
|
{
|
||||||
@@ -54,8 +54,9 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
.SelectMany(rvpi => rvpi.RenderPreviewVoxels(init, this, image, orientation, facings, palette))
|
.SelectMany(rvpi => rvpi.RenderPreviewVoxels(init, this, image, orientation, facings, palette))
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
yield return new VoxelPreview(components, WVec.Zero, 0, this, body.CameraPitch, palette,
|
yield return new VoxelPreview(components, WVec.Zero, 0, this.Scale, this.LightPitch,
|
||||||
init.WorldRenderer.Palette(NormalsPalette), init.WorldRenderer.Palette("shadow"));
|
this.LightYaw, this.LightAmbientColor, this.LightDiffuseColor, body.CameraPitch,
|
||||||
|
palette, init.WorldRenderer.Palette(NormalsPalette), init.WorldRenderer.Palette("shadow"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Buildings;
|
using OpenRA.Mods.RA.Buildings;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Mods.RA.Activities;
|
using OpenRA.Mods.RA.Activities;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
|
|||||||
@@ -41,6 +41,10 @@
|
|||||||
<Project>{0DFB103F-2962-400F-8C6D-E2C28CCBA633}</Project>
|
<Project>{0DFB103F-2962-400F-8C6D-E2C28CCBA633}</Project>
|
||||||
<Name>OpenRA.Game</Name>
|
<Name>OpenRA.Game</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj">
|
||||||
|
<Project>{fe6c8cc0-2f07-442a-b29f-17617b3b7fc6}</Project>
|
||||||
|
<Name>OpenRA.Mods.Common</Name>
|
||||||
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\OpenRA.Mods.RA\OpenRA.Mods.RA.csproj">
|
<ProjectReference Include="..\OpenRA.Mods.RA\OpenRA.Mods.RA.csproj">
|
||||||
<Project>{4A8A43B5-A9EF-4ED0-99DD-4BAB10A0DB6E}</Project>
|
<Project>{4A8A43B5-A9EF-4ED0-99DD-4BAB10A0DB6E}</Project>
|
||||||
<Name>OpenRA.Mods.RA</Name>
|
<Name>OpenRA.Mods.RA</Name>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.RA.Graphics;
|
using OpenRA.Mods.Common.Graphics;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.Render
|
namespace OpenRA.Mods.RA.Render
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ Chrome:
|
|||||||
mods/cnc/chrome.yaml
|
mods/cnc/chrome.yaml
|
||||||
|
|
||||||
Assemblies:
|
Assemblies:
|
||||||
mods/ra/OpenRA.Mods.RA.dll
|
|
||||||
mods/common/OpenRA.Mods.Common.dll
|
mods/common/OpenRA.Mods.Common.dll
|
||||||
|
mods/ra/OpenRA.Mods.RA.dll
|
||||||
mods/cnc/OpenRA.Mods.Cnc.dll
|
mods/cnc/OpenRA.Mods.Cnc.dll
|
||||||
mods/d2k/OpenRA.Mods.D2k.dll
|
mods/d2k/OpenRA.Mods.D2k.dll
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ Chrome:
|
|||||||
mods/d2k/chrome.yaml
|
mods/d2k/chrome.yaml
|
||||||
|
|
||||||
Assemblies:
|
Assemblies:
|
||||||
mods/ra/OpenRA.Mods.RA.dll
|
|
||||||
mods/common/OpenRA.Mods.Common.dll
|
mods/common/OpenRA.Mods.Common.dll
|
||||||
|
mods/ra/OpenRA.Mods.RA.dll
|
||||||
mods/cnc/OpenRA.Mods.Cnc.dll
|
mods/cnc/OpenRA.Mods.Cnc.dll
|
||||||
mods/d2k/OpenRA.Mods.D2k.dll
|
mods/d2k/OpenRA.Mods.D2k.dll
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Chrome:
|
|||||||
mods/modchooser/chrome.yaml
|
mods/modchooser/chrome.yaml
|
||||||
|
|
||||||
Assemblies:
|
Assemblies:
|
||||||
|
mods/common/OpenRA.Mods.Common.dll
|
||||||
mods/ra/OpenRA.Mods.RA.dll
|
mods/ra/OpenRA.Mods.RA.dll
|
||||||
|
|
||||||
ChromeLayout:
|
ChromeLayout:
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ Chrome:
|
|||||||
mods/ra/chrome.yaml
|
mods/ra/chrome.yaml
|
||||||
|
|
||||||
Assemblies:
|
Assemblies:
|
||||||
mods/ra/OpenRA.Mods.RA.dll
|
|
||||||
mods/common/OpenRA.Mods.Common.dll
|
mods/common/OpenRA.Mods.Common.dll
|
||||||
|
mods/ra/OpenRA.Mods.RA.dll
|
||||||
mods/cnc/OpenRA.Mods.Cnc.dll
|
mods/cnc/OpenRA.Mods.Cnc.dll
|
||||||
mods/d2k/OpenRA.Mods.D2k.dll
|
mods/d2k/OpenRA.Mods.D2k.dll
|
||||||
|
|
||||||
|
|||||||
@@ -92,8 +92,8 @@ Chrome:
|
|||||||
mods/ts/chrome.yaml
|
mods/ts/chrome.yaml
|
||||||
|
|
||||||
Assemblies:
|
Assemblies:
|
||||||
mods/ra/OpenRA.Mods.RA.dll
|
|
||||||
mods/common/OpenRA.Mods.Common.dll
|
mods/common/OpenRA.Mods.Common.dll
|
||||||
|
mods/ra/OpenRA.Mods.RA.dll
|
||||||
mods/d2k/OpenRA.Mods.D2k.dll
|
mods/d2k/OpenRA.Mods.D2k.dll
|
||||||
mods/cnc/OpenRA.Mods.Cnc.dll
|
mods/cnc/OpenRA.Mods.Cnc.dll
|
||||||
mods/ts/OpenRA.Mods.TS.dll
|
mods/ts/OpenRA.Mods.TS.dll
|
||||||
|
|||||||
Reference in New Issue
Block a user