Devmode in Version String
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user