| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class VersionConfig : ScriptableObject
|
| | | {
|
| | | public const string VERSION_ALTERNATIVE = "0.0.0";
|
| | | public const string VERSION_ALTERNATIVE = "1.100.1";
|
| | |
|
| | | [SerializeField] public string m_AppId = string.Empty;
|
| | | public string appId {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | [SerializeField] string m_GameId = string.Empty;
|
| | | string m_GameId = string.Empty;
|
| | | public string gameId {
|
| | | get {
|
| | | if (string.IsNullOrEmpty(m_GameId))
|
| | | {
|
| | | return "xbqy";
|
| | | var gameText = Resources.Load<TextAsset>("Game");
|
| | | if (gameText != null)
|
| | | {
|
| | | m_GameId = gameText.text;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_GameId = "xbqy";
|
| | | }
|
| | | }
|
| | |
|
| | | return m_GameId;
|
| | |
| | | m_Version = dataStrings[4];
|
| | | m_ClientPackageFlag = dataStrings[5];
|
| | | m_Branch = int.Parse(dataStrings[6]);
|
| | | m_GameId = dataStrings[7];
|
| | | m_AssetAccess = (InstalledAsset)int.Parse(dataStrings[8]);
|
| | | m_PartAssetPackage = int.Parse(dataStrings[9]) == 1;
|
| | | m_ProductName = dataStrings[10];
|
| | |
| | | _to.m_Version = _from.m_Version;
|
| | | _to.m_AppId = _from.m_AppId;
|
| | | _to.m_Branch = _from.m_Branch;
|
| | | _to.m_GameId = _from.m_GameId;
|
| | | _to.m_AssetAccess = _from.m_AssetAccess;
|
| | | _to.m_PartAssetPackage = _from.m_PartAssetPackage;
|
| | | _to.m_BuildTime = _from.m_BuildTime;
|