ForceVNext

This commit is contained in:
dingo
2026-02-09 07:57:00 -05:00
parent fb17d1c16b
commit 5005206631
+11 -11
View File
@@ -9,19 +9,19 @@ public sealed partial class DungeonHandler
{
private bool IsVNextGeneratorEnabled()
{
using var scope = _scopeFactory.CreateScope();
var configuration = scope.ServiceProvider.GetService<IConfiguration>();
var fromConfig = configuration?.GetValue<bool?>("Dungeon:EnableVNextGenerator");
if (fromConfig.HasValue)
return fromConfig.Value;
//using var scope = _scopeFactory.CreateScope();
//var configuration = scope.ServiceProvider.GetService<IConfiguration>();
//var fromConfig = configuration?.GetValue<bool?>("Dungeon:EnableVNextGenerator");
//if (fromConfig.HasValue)
// return fromConfig.Value;
var raw = "true";
// var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED")
// ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator");
if (string.IsNullOrWhiteSpace(raw))
return false;
//var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED")
// ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator");
//if (string.IsNullOrWhiteSpace(raw))
// return false;
return raw == "1" || raw.Equals("true", StringComparison.OrdinalIgnoreCase);
//return raw == "1" || raw.Equals("true", StringComparison.OrdinalIgnoreCase);
return true;
}
private async Task<(DungeonLayout layout, DungeonLayoutV2? layoutV2)> GenerateDungeonLayoutWithFallbackAsync(int seed, int tier, CancellationToken ct)