Rename DebugOverlay -> PathfinderDebugOverlay.
This commit is contained in:
@@ -134,7 +134,7 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var dbg = world.WorldActor.TraitOrDefault<DebugOverlay>();
|
var dbg = world.WorldActor.TraitOrDefault<PathfinderDebugOverlay>();
|
||||||
if (dbg != null)
|
if (dbg != null)
|
||||||
{
|
{
|
||||||
dbg.AddLayer(search.considered.Select(p => new Pair<CPos, int>(p, search.cellInfo[p.X, p.Y].MinCost)), search.maxCost, search.owner);
|
dbg.AddLayer(search.considered.Select(p => new Pair<CPos, int>(p, search.cellInfo[p.X, p.Y].MinCost)), search.maxCost, search.owner);
|
||||||
@@ -199,7 +199,7 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var dbg = world.WorldActor.TraitOrDefault<DebugOverlay>();
|
var dbg = world.WorldActor.TraitOrDefault<PathfinderDebugOverlay>();
|
||||||
if (dbg != null)
|
if (dbg != null)
|
||||||
{
|
{
|
||||||
dbg.AddLayer(fromSrc.considered.Select(p => new Pair<CPos, int>(p, fromSrc.cellInfo[p.X, p.Y].MinCost)), fromSrc.maxCost, fromSrc.owner);
|
dbg.AddLayer(fromSrc.considered.Select(p => new Pair<CPos, int>(p, fromSrc.cellInfo[p.X, p.Y].MinCost)), fromSrc.maxCost, fromSrc.owner);
|
||||||
|
|||||||
@@ -414,7 +414,6 @@
|
|||||||
<Compile Include="Widgets\SupportPowerBinWidget.cs" />
|
<Compile Include="Widgets\SupportPowerBinWidget.cs" />
|
||||||
<Compile Include="Widgets\WorldCommandWidget.cs" />
|
<Compile Include="Widgets\WorldCommandWidget.cs" />
|
||||||
<Compile Include="World\ChooseBuildTabOnSelect.cs" />
|
<Compile Include="World\ChooseBuildTabOnSelect.cs" />
|
||||||
<Compile Include="World\DebugOverlay.cs" />
|
|
||||||
<Compile Include="World\ResourceClaim.cs" />
|
<Compile Include="World\ResourceClaim.cs" />
|
||||||
<Compile Include="World\ResourceClaimLayer.cs" />
|
<Compile Include="World\ResourceClaimLayer.cs" />
|
||||||
<Compile Include="World\PlayMusicOnMapLoad.cs" />
|
<Compile Include="World\PlayMusicOnMapLoad.cs" />
|
||||||
@@ -471,6 +470,7 @@
|
|||||||
<Compile Include="AI\States\AirStates.cs" />
|
<Compile Include="AI\States\AirStates.cs" />
|
||||||
<Compile Include="Widgets\Logic\InstallLogic.cs" />
|
<Compile Include="Widgets\Logic\InstallLogic.cs" />
|
||||||
<Compile Include="CombatDebugOverlay.cs" />
|
<Compile Include="CombatDebugOverlay.cs" />
|
||||||
|
<Compile Include="World\PathfinderDebugOverlay.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
noexplorationButton.OnClick = () =>
|
noexplorationButton.OnClick = () =>
|
||||||
world.IssueOrder(new Order("DevResetExploration", world.LocalPlayer.PlayerActor, false));
|
world.IssueOrder(new Order("DevResetExploration", world.LocalPlayer.PlayerActor, false));
|
||||||
|
|
||||||
var dbgOverlay = world.WorldActor.TraitOrDefault<DebugOverlay>();
|
var dbgOverlay = world.WorldActor.TraitOrDefault<PathfinderDebugOverlay>();
|
||||||
var showAstarCostCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_ASTAR");
|
var showAstarCostCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_ASTAR");
|
||||||
if (showAstarCostCheckbox != null)
|
if (showAstarCostCheckbox != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,11 +9,8 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
class DebugOverlayInfo : Traits.TraitInfo<DebugOverlay>
|
class PathfinderDebugOverlayInfo : Traits.TraitInfo<PathfinderDebugOverlay> { }
|
||||||
{
|
class PathfinderDebugOverlay : IRenderOverlay, IWorldLoaded
|
||||||
}
|
|
||||||
|
|
||||||
class DebugOverlay : IRenderOverlay, IWorldLoaded
|
|
||||||
{
|
{
|
||||||
Dictionary<Player, int[,]> layers;
|
Dictionary<Player, int[,]> layers;
|
||||||
int refreshTick;
|
int refreshTick;
|
||||||
@@ -311,7 +311,7 @@ World:
|
|||||||
Type:Crater
|
Type:Crater
|
||||||
Types:cr1,cr2,cr3,cr4,cr5,cr6
|
Types:cr1,cr2,cr3,cr4,cr5,cr6
|
||||||
Depths:5,5,5,5,5,5
|
Depths:5,5,5,5,5,5
|
||||||
DebugOverlay:
|
PathfinderDebugOverlay:
|
||||||
SpawnMapActors:
|
SpawnMapActors:
|
||||||
MPStartLocations:
|
MPStartLocations:
|
||||||
CreateMPPlayers:
|
CreateMPPlayers:
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ World:
|
|||||||
Name: Ordos
|
Name: Ordos
|
||||||
Race: ordos
|
Race: ordos
|
||||||
DomainIndex:
|
DomainIndex:
|
||||||
DebugOverlay:
|
PathfinderDebugOverlay:
|
||||||
ResourceLayer:
|
ResourceLayer:
|
||||||
ResourceClaimLayer:
|
ResourceClaimLayer:
|
||||||
ResourceType@Spice:
|
ResourceType@Spice:
|
||||||
|
|||||||
@@ -645,7 +645,7 @@ World:
|
|||||||
Type:Crater
|
Type:Crater
|
||||||
Types:cr1,cr2,cr3,cr4,cr5,cr6
|
Types:cr1,cr2,cr3,cr4,cr5,cr6
|
||||||
Depths:5,5,5,5,5,5
|
Depths:5,5,5,5,5,5
|
||||||
DebugOverlay:
|
PathfinderDebugOverlay:
|
||||||
SpawnMapActors:
|
SpawnMapActors:
|
||||||
CreateMPPlayers:
|
CreateMPPlayers:
|
||||||
MPStartUnits@mcvonly:
|
MPStartUnits@mcvonly:
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ World:
|
|||||||
Race: nod
|
Race: nod
|
||||||
ResourceLayer:
|
ResourceLayer:
|
||||||
ResourceClaimLayer:
|
ResourceClaimLayer:
|
||||||
DebugOverlay:
|
PathfinderDebugOverlay:
|
||||||
SpawnMapActors:
|
SpawnMapActors:
|
||||||
CreateMPPlayers:
|
CreateMPPlayers:
|
||||||
MPStartUnits:
|
MPStartUnits:
|
||||||
|
|||||||
Reference in New Issue
Block a user