Files
BeWoPlaner/Shared/BeWoAppInfo.cs

34 lines
859 B
C#

using BS.Shared;
using BS.Shared.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BS.Shared
{
public static class BeWoAppInfo
{
static BeWoAppInfo()
{
var baseVersion = new Version("3.32");
var stage = BeWoClientReleaseStage.Sandbox;
var stageVersion = new Version("5.2.3.1");
var feature = BeWoClientFeature.AI;
#if !DEBUG
//stage = BeWoClientReleaseStage.Release;
//feature = BeWoClientFeature.None;
#endif
BeWoAppVersion = new BeWoAppVersion(baseVersion, stage, stageVersion, feature);
}
public static BeWoAppVersion BeWoAppVersion { get; private set; }
public static bool IsInAiMode => BeWoAppVersion.Feature == BeWoClientFeature.AI;
public static bool IsInAiDeveloperMode => IsInAiMode && BeWoAppVersion.IsInDeveloperMode;
}
}