Skip to content

Commit 4cc43ac

Browse files
author
Bronson Zgeb
committed
Added a SerializableScriptableObject to store asset GUID.
This replaces the previous serialization code. We can use the cached asset GUID to serialize assets to disk as well as load them through the Addressables system.
1 parent ee48a64 commit 4cc43ac

21 files changed

+28
-197
lines changed

UOP1_Project/Assets/ScriptableObjects/SaveSystem/SaveSystem.asset

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ MonoBehaviour:
1414
m_EditorClassIdentifier:
1515
locationDatabase: {fileID: 11400000, guid: 9abcccc3f16b8c54e984de463d147899, type: 2}
1616
_loadLocation: {fileID: 11400000, guid: 00e3063edc5902e40832ea618644c597, type: 2}
17+
_onSceneReady: {fileID: 11400000, guid: b729e40fc41dd8b4ea7aaf5c857f7186, type: 2}
1718
saveFilename: save.chop
1819
saveData:
19-
_locationId: 47723aeb-1bae-48c7-a760-4d6339e4a68a
20+
_locationId:

UOP1_Project/Assets/ScriptableObjects/SceneData/Locations/LocationDatabase.asset

Lines changed: 0 additions & 18 deletions
This file was deleted.

UOP1_Project/Assets/ScriptableObjects/SceneData/Locations/LocationDatabase.asset.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/BaseClasses/DescriptionBaseSO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// Base class for ScriptableObjects that need a public description field.
55
/// </summary>
6-
public class DescriptionBaseSO : ScriptableObject
6+
public class DescriptionBaseSO : SerializableScriptableObject
77
{
88
[TextArea] public string description;
99
}

UOP1_Project/Assets/Scripts/SaveSystem/Database.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/SaveSystem/Database.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/SaveSystem/Editor.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/SaveSystem/Editor/UuidDrawer.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/SaveSystem/Editor/UuidDrawer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

UOP1_Project/Assets/Scripts/SaveSystem/IDesc.cs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)