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