-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔩 2.2.0 Release > Merge pull request #5 from CarterGames/prerelease
📦 2.2.0 Release
- Loading branch information
Showing
63 changed files
with
1,331 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 2.2.0 | ||
## Asset changes | ||
|
||
- Added support for git URL importing of the asset over .unityPackage. This is considered the recommended install method going forward for ease of updates etc. | ||
- Added porting tool to transfer user asset settings to the new location required for the git URL update. | ||
- Updated scriptable asset flow with the latest from the cart library which is more modular and easy to use on the backend. | ||
- Some additional helper classes for more performant editor operations from within the asset. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Carter Games/Save Manager/Code/Editor/CarterGames.SaveManager.Editor.asmdef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
Carter Games/Save Manager/Code/Editor/Systems/Version Validator/InstallMethodChecker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* Copyright (c) 2024 Carter Games | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
using UnityEditor; | ||
using UnityEditor.PackageManager; | ||
using UnityEditor.PackageManager.Requests; | ||
|
||
namespace CarterGames.Assets.SaveManager.Editor | ||
{ | ||
/// <summary> | ||
/// A class to help redirect the user to the right update location for the asset. In theory... | ||
/// </summary> | ||
public sealed class InstallMethodChecker : IAssetEditorInitialize | ||
{ | ||
/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
| Methods | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── */ | ||
|
||
private static ListRequest PackageManifestRequest { get; set; } | ||
|
||
|
||
private static bool HasChecked | ||
{ | ||
get => SessionState.GetBool("VersionValidation_InstallMethod_Checked", false); | ||
set => SessionState.SetBool("VersionValidation_InstallMethod_Checked", value); | ||
} | ||
|
||
|
||
public static bool IsPackageInstalled | ||
{ | ||
get => SessionState.GetBool("VersionValidation_InstallMethod_IsPackageManager", false); | ||
set => SessionState.SetBool("VersionValidation_InstallMethod_IsPackageManager", value); | ||
} | ||
|
||
/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
| IAssetEditorInitialize Implementation | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── */ | ||
|
||
public int InitializeOrder { get; } | ||
|
||
|
||
public void OnEditorInitialized() | ||
{ | ||
if (HasChecked) return; | ||
|
||
PackageManifestRequest = Client.List(); | ||
|
||
EditorApplication.update -= OnPackageManagerGetResolved; | ||
EditorApplication.update += OnPackageManagerGetResolved; | ||
} | ||
|
||
/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
| Methods | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── */ | ||
|
||
private static void OnPackageManagerGetResolved() | ||
{ | ||
if (!PackageManifestRequest.IsCompleted) return; | ||
|
||
EditorApplication.update -= OnPackageManagerGetResolved; | ||
|
||
if (PackageManifestRequest.Status != StatusCode.Success) return; | ||
|
||
HasChecked = true; | ||
|
||
foreach (var result in PackageManifestRequest.Result) | ||
{ | ||
if (result.packageId.Equals("games.carter.thecart")) continue; | ||
IsPackageInstalled = true; | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...Editor Method Aid/InterfaceHelper.cs.meta → ...on Validator/InstallMethodChecker.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
Carter Games/Save Manager/Code/Editor/Systems/Version Validator/VersionAutoCheck.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
Carter Games/Save Manager/Code/Editor/Systems/Version Validator/VersionChecker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.