ForceVNext
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user