Fix SA1414

This commit is contained in:
RoosterDragon
2023-04-05 19:41:28 +01:00
committed by Pavel Penev
parent a167f9680f
commit 14c0d011ea
10 changed files with 9 additions and 12 deletions

View File

@@ -192,7 +192,7 @@ namespace OpenRA.Mods.Common.Widgets
readonly Queue<EditorActorPreview> addedActorPreviews = new();
public CopyPasteEditorAction(MapCopyFilters copyFilters, Map map,
Dictionary<CPos, (TerrainTile, ResourceTile, byte)> tiles, Dictionary<string, ActorReference> previews,
Dictionary<CPos, (TerrainTile Tile, ResourceTile Resource, byte Height)> tiles, Dictionary<string, ActorReference> previews,
EditorActorLayer editorLayer, CellRegion dest)
{
this.copyFilters = copyFilters;

View File

@@ -543,7 +543,7 @@ namespace OpenRA.Mods.Common.Graphics
return GetSprite(frame, WAngle.Zero);
}
public (Sprite, WAngle) GetSpriteWithRotation(int frame, WAngle facing)
public (Sprite Sprite, WAngle Rotation) GetSpriteWithRotation(int frame, WAngle facing)
{
var rotation = WAngle.Zero;
if (interpolatedFacings != null)

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
"Overrides `Color` if both set.")]
public readonly string Terrain = null;
void IMapPreviewSignatureInfo.PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos, Color)> destinationBuffer)
void IMapPreviewSignatureInfo.PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos Uv, Color Color)> destinationBuffer)
{
Color color;
if (!string.IsNullOrEmpty(Terrain))

View File

@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.Traits
return ret;
}
void IMapPreviewSignatureInfo.PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos, Color)> destinationBuffer)
void IMapPreviewSignatureInfo.PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos Uv, Color Color)> destinationBuffer)
{
var resourceLayer = ai.TraitInfoOrDefault<IResourceLayerInfo>();
if (resourceLayer == null)

View File

@@ -275,7 +275,7 @@ namespace OpenRA.Mods.Common.Traits
return info.UseExtendedIndex ? edges ^ ucorner : edges & Edges.AllCorners;
}
(Edges, Edges) GetEdges(PPos puv)
(Edges EdgesShroud, Edges EdgesFog) GetEdges(PPos puv)
{
var cv = cellVisibility(puv);