updated for v81
This commit is contained in:
parent
8e30a1b6e6
commit
b4a50adc9f
21 changed files with 372 additions and 238 deletions
|
|
@ -17,10 +17,10 @@ using DunGenPlus.Patches;
|
|||
namespace DunGenPlus.Generation {
|
||||
internal partial class DunGenPlusGenerator {
|
||||
|
||||
public static void PrintAddTileError(DungeonGenerator gen, TileProxy previousTile, DungeonArchetype archetype, IEnumerable<TileSet> useableTileSets, int branchId, int lineLength, float lineRatio){
|
||||
public static void PrintAddTileError(DungeonGenerator gen, TileProxy previousTile, TilePlacementParameters placementParameters, IEnumerable<TileSet> useableTileSets, int branchId, int lineLength, float lineRatio){
|
||||
|
||||
var prevName = previousTile != null ? previousTile.Prefab.name : "NULL";
|
||||
var archetypeName = archetype ? archetype.name : "NULL";
|
||||
var archetypeName = placementParameters.Archetype ? placementParameters.Archetype.name : "NULL";
|
||||
var tileSetNames = string.Join(", ", useableTileSets);
|
||||
|
||||
var stringList = new List<string>();
|
||||
|
|
@ -38,7 +38,7 @@ namespace DunGenPlus.Generation {
|
|||
stringList.Add($"Used Doorways: {usedDoorways}");
|
||||
|
||||
if (API.IsDevDebugModeActive()){
|
||||
var allTiles = GetDoorwayPairs(gen, previousTile, useableTileSets, archetype, lineRatio);
|
||||
var allTiles = GetDoorwayPairsDebug(gen, previousTile, useableTileSets, lineRatio, placementParameters);
|
||||
var uniqueTiles = string.Join(", ", allTiles.Select(t => t.NextTemplate.Prefab).Distinct().Select(d => d.name));
|
||||
|
||||
stringList.Add($"Next Possible Tiles: {uniqueTiles}");
|
||||
|
|
@ -50,12 +50,13 @@ namespace DunGenPlus.Generation {
|
|||
}
|
||||
|
||||
public static void PrintAddTileErrorQuick(DungeonGenerator gen, int lineLength){
|
||||
PrintAddTileError(gen, DungeonGeneratorPatch.lastAttachTo, DungeonGeneratorPatch.lastArchetype, DungeonGeneratorPatch.lastUseableTileSets, 0, lineLength, DungeonGeneratorPatch.lastNormalizedDepth);
|
||||
PrintAddTileError(gen, DungeonGeneratorPatch.lastAttachTo, DungeonGeneratorPatch.lastPlacementParms, DungeonGeneratorPatch.lastUseableTileSets, 0, lineLength, DungeonGeneratorPatch.lastNormalizedDepth);
|
||||
}
|
||||
|
||||
public static TilePlacementResult lastTilePlacementResult;
|
||||
|
||||
public static void RecordLastTilePlacementResult(DungeonGenerator gen, TilePlacementResult result){
|
||||
public static void RecordLastTilePlacementResult(DungeonGenerator gen, TilePlacementResult result, TileProxy attachTo){
|
||||
if (result == null) result = new NoMatchingDoorwayPlacementResult(attachTo);
|
||||
lastTilePlacementResult = result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue