ForceVNext
This commit is contained in:
@@ -9,19 +9,19 @@ public sealed partial class DungeonHandler
|
|||||||
{
|
{
|
||||||
private bool IsVNextGeneratorEnabled()
|
private bool IsVNextGeneratorEnabled()
|
||||||
{
|
{
|
||||||
using var scope = _scopeFactory.CreateScope();
|
//using var scope = _scopeFactory.CreateScope();
|
||||||
var configuration = scope.ServiceProvider.GetService<IConfiguration>();
|
//var configuration = scope.ServiceProvider.GetService<IConfiguration>();
|
||||||
var fromConfig = configuration?.GetValue<bool?>("Dungeon:EnableVNextGenerator");
|
//var fromConfig = configuration?.GetValue<bool?>("Dungeon:EnableVNextGenerator");
|
||||||
if (fromConfig.HasValue)
|
//if (fromConfig.HasValue)
|
||||||
return fromConfig.Value;
|
// return fromConfig.Value;
|
||||||
|
|
||||||
var raw = "true";
|
//var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED")
|
||||||
// var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED")
|
// ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator");
|
||||||
// ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator");
|
//if (string.IsNullOrWhiteSpace(raw))
|
||||||
if (string.IsNullOrWhiteSpace(raw))
|
// return false;
|
||||||
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)
|
private async Task<(DungeonLayout layout, DungeonLayoutV2? layoutV2)> GenerateDungeonLayoutWithFallbackAsync(int seed, int tier, CancellationToken ct)
|
||||||
|
|||||||
Reference in New Issue
Block a user