//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 loyalsoft. All rights reserved. // Homepage: http://www.game7000.com/ // Feedback: http://www.game7000.com/ //------------------------------------------------------------ namespace GameFramework { /// /// 版本号类。 /// public static partial class Version { private const string GameFrameworkVersionString = "2021.05.31"; private static IVersionHelper s_VersionHelper = null; /// /// 获取游戏框架版本号。 /// public static string GameFrameworkVersion { get { return GameFrameworkVersionString; } } /// /// 获取游戏版本号。 /// public static string GameVersion { get { if (s_VersionHelper == null) { return string.Empty; } return s_VersionHelper.GameVersion; } } /// /// 获取内部游戏版本号。 /// public static int InternalGameVersion { get { if (s_VersionHelper == null) { return 0; } return s_VersionHelper.InternalGameVersion; } } /// /// 设置版本号辅助器。 /// /// 要设置的版本号辅助器。 public static void SetVersionHelper(IVersionHelper versionHelper) { s_VersionHelper = versionHelper; } } }