Skip to content

Commit 215f9be

Browse files
Merge branch 'development'
2 parents b7d073e + 36f92da commit 215f9be

File tree

312 files changed

+2844
-14334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+2844
-14334
lines changed

Prowl.Editor/Assets/AssetDatabase.Core.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using Prowl.Runtime;
77
using Prowl.Runtime.Utils;
8+
using Prowl.Echo;
89

910
using Debug = Prowl.Runtime.Debug;
1011

@@ -576,7 +577,7 @@ public static void SaveAsset(EngineObject assetInstance, bool pingAsset = true)
576577
{
577578
try
578579
{
579-
SerializedProperty serialized = Serializer.Serialize(assetInstance);
580+
EchoObject serialized = Serializer.Serialize(assetInstance);
580581
StringTagConverter.WriteToFile(serialized, fileInfo);
581582

582583
if(pingAsset)

Prowl.Editor/Assets/AssetDatabase.Packages.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

44
using System.IO.Compression;
5-
using System.Net.Http.Json;
65
using System.Text.Json;
7-
using System.Text.Json.Serialization;
8-
9-
using BepuPhysics.CollisionDetection;
106

7+
using Prowl.Editor.Utilities.SemVersion;
118
using Prowl.Runtime;
129
using Prowl.Runtime.Utils;
1310

14-
using Prowl.Editor.Utilities.SemVersion;
15-
1611
namespace Prowl.Editor.Assets;
1712

1813
#warning TODO: Support other sources then just Github, should support any git source, Also would be nice to look into NuGet support

Prowl.Editor/Assets/Importers/MaterialImporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4-
using Prowl.Editor.Preferences;
4+
using Prowl.Echo;
55
using Prowl.Editor.ScriptedEditors;
66
using Prowl.Runtime;
77
using Prowl.Runtime.Utils;
@@ -41,7 +41,7 @@ public class MaterialImporterEditor : ScriptedEditor
4141

4242
public override void OnEnable()
4343
{
44-
SerializedProperty tag = StringTagConverter.ReadFromFile((target as MetaFile).AssetPath);
44+
EchoObject tag = StringTagConverter.ReadFromFile((target as MetaFile).AssetPath);
4545
_editingMaterial = Serializer.Deserialize<Material>(tag);
4646

4747
_editor = CreateEditor(_editingMaterial);

Prowl.Editor/Assets/Importers/MeshImporter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4+
using Prowl.Echo;
45
using Prowl.Runtime;
56
using Prowl.Runtime.Utils;
67

Prowl.Editor/Assets/Importers/PrefabImporter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4+
using Prowl.Echo;
45
using Prowl.Runtime;
56
using Prowl.Runtime.Utils;
67

Prowl.Editor/Assets/Importers/SceneImporter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4+
using Prowl.Echo;
45
using Prowl.Runtime;
56
using Prowl.Runtime.Utils;
67

Prowl.Editor/Assets/Importers/ScriptableObjectImporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4+
using Prowl.Echo;
45
using Prowl.Editor.Preferences;
5-
using Prowl.Editor.ScriptedEditors;
66
using Prowl.Runtime;
77
using Prowl.Runtime.Utils;
88

@@ -28,7 +28,7 @@ public class ScriptableObjectImporterEditor : ScriptedEditor
2828

2929
public override void OnEnable()
3030
{
31-
SerializedProperty tag = StringTagConverter.ReadFromFile((target as MetaFile).AssetPath);
31+
EchoObject tag = StringTagConverter.ReadFromFile((target as MetaFile).AssetPath);
3232
_editingObject = Serializer.Deserialize<ScriptableObject>(tag);
3333
_objectEditor = null; // Replace this to load a Scripta
3434
}

Prowl.Editor/Assets/MetaFile.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is part of the Prowl Game Engine
22
// Licensed under the MIT License. See the LICENSE file in the project root for details.
33

4-
using Prowl.Runtime;
4+
using Prowl.Echo;
55

66
namespace Prowl.Editor.Assets;
77

@@ -43,7 +43,7 @@ public void Save()
4343
{
4444
FileInfo file = new(AssetPath.FullName + ".meta");
4545
version = MetaVersion;
46-
SerializedProperty tag = Serializer.Serialize(this);
46+
EchoObject tag = Serializer.Serialize(this);
4747
StringTagConverter.WriteToFile(tag, file);
4848
}
4949

@@ -54,7 +54,7 @@ public void Save()
5454
{
5555
FileInfo file = new(assetFile + ".meta");
5656
if (!File.Exists(file.FullName)) return null; // Doesnt Exist
57-
SerializedProperty tag = StringTagConverter.ReadFromFile(file);
57+
EchoObject tag = StringTagConverter.ReadFromFile(file);
5858
MetaFile? meta = Serializer.Deserialize<MetaFile>(tag);
5959
meta!.AssetPath = assetFile;
6060
meta.lastModified = DateTime.UtcNow;

Prowl.Editor/Build/DesktopPlayerBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Prowl.Runtime;
1111
using Prowl.Runtime.Utils;
1212
using Prowl.Runtime.Rendering;
13+
using Prowl.Echo;
1314

1415
namespace Prowl.Editor.Build;
1516

@@ -260,7 +261,7 @@ private static void PackScenes(AssetRef<Scene>[] scenes, string dataPath)
260261
{
261262
// Debug.Log($"Packing scene_{i}.prowl.");
262263
AssetRef<Scene> scene = scenes[i];
263-
SerializedProperty tag = Serializer.Serialize(scene.Res!);
264+
EchoObject tag = Serializer.Serialize(scene.Res!);
264265
BinaryTagConverter.WriteToFile(tag, new FileInfo(Path.Combine(dataPath, $"scene_{i}.prowl")));
265266
}
266267
}

Prowl.Editor/Editor/AssetsBrowserWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
using System.Reflection;
55

6+
using Prowl.Echo;
67
using Prowl.Editor.Assets;
78
using Prowl.Editor.Preferences;
8-
using Prowl.Editor.Utilities;
99
using Prowl.Icons;
1010
using Prowl.Runtime;
1111
using Prowl.Runtime.GUI;

0 commit comments

Comments
 (0)