Devmode in Version String

This commit is contained in:
2025-08-11 13:05:31 +02:00
parent daa2db26bc
commit 4a9846b99c
3 changed files with 24 additions and 22 deletions

View File

@@ -19,31 +19,11 @@ namespace BeWo
var feature = BeWoClientFeature.AI;
BeWoAppVersion = new BeWoAppVersion(baseVersion, stage, stageVersion, feature);
#if DEBUG
IsInDeveloperMode = true;
#endif
}
private static bool IsInDeveloperMode { get; set; }
public static BeWoAppVersion BeWoAppVersion { get; private set; }
public static bool IsInAiMode => BeWoAppVersion.Feature == BeWoClientFeature.AI;
public static bool IsInAiSandboxMode => IsInDeveloperMode && IsInAiMode;
public static void TryActiveDeveloperMode(string[] args)
{
if (BeWoAppVersion.Stage != BeWoClientReleaseStage.Sandbox)
return;
if (args.All(x => x != "/bewodevmode" && x != "--bewodevmode"))
return;
if (IsInDeveloperMode)
throw new NotImplementedException();
IsInDeveloperMode = true;
}
public static bool IsInAiSandboxMode => BeWoAppVersion.IsInDeveloperMode && IsInAiMode;
}
}