Skip to content

Commit

Permalink
[v0.2.8-pre.1] Package renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
g0dzZz-coder committed Jun 25, 2024
1 parent 9075f72 commit a40bff3
Show file tree
Hide file tree
Showing 53 changed files with 135 additions and 113 deletions.
4 changes: 2 additions & 2 deletions Editor/Depra.Assets.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Depra.Assets.Editor",
"name": "Depra.Asset.Editor",
"rootNamespace": "Depra.Assets",
"references": [
"GUID:ce2ab5ef472b35f498b9d47a89be9396"
Expand All @@ -11,7 +11,7 @@
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Depra.Assets.dll"
"Depra.Asset.dll"
],
"autoReferenced": true,
"defineConstraints": [],
Expand Down
6 changes: 3 additions & 3 deletions Editor/Drawers/ResourcesReferenceDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: Apache-2.0
// © 2023-2024 Nikolay Melnikov <[email protected]>

using Depra.Assets.Editor.Extensions;
using Depra.Assets.Files.Resource;
using Depra.Asset.Editor.Extensions;
using Depra.Asset.Files.Resource;
using UnityEditor;
using UnityEngine;

namespace Depra.Assets.Editor.Drawers
namespace Depra.Asset.Editor.Drawers
{
[CustomPropertyDrawer(typeof(ResourcesReference), true)]
internal sealed class ResourcesReferenceDrawer : PropertyDrawer
Expand Down
2 changes: 1 addition & 1 deletion Editor/Extensions/SerializedPropertyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Text.RegularExpressions;
using UnityEditor;

namespace Depra.Assets.Editor.Extensions
namespace Depra.Asset.Editor.Extensions
{
internal static class SerializedPropertyExtensions
{
Expand Down
14 changes: 7 additions & 7 deletions Editor/Files/EditorDatabaseAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Delegates;
using Depra.Assets.Exceptions;
using Depra.Assets.Extensions;
using Depra.Assets.Files;
using Depra.Assets.Files.Database;
using Depra.Assets.ValueObjects;
using Depra.Asset.Delegates;
using Depra.Asset.Exceptions;
using Depra.Asset.Extensions;
using Depra.Asset.Files;
using Depra.Asset.Files.Database;
using Depra.Asset.ValueObjects;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

namespace Depra.Assets.Editor.Files
namespace Depra.Asset.Editor.Files
{
public sealed class EditorDatabaseAsset<TAsset> : IAssetFile<TAsset>, IDisposable where TAsset : ScriptableObject
{
Expand Down
10 changes: 5 additions & 5 deletions Editor/Files/PreloadedAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Delegates;
using Depra.Assets.Exceptions;
using Depra.Assets.Files;
using Depra.Assets.ValueObjects;
using Depra.Asset.Delegates;
using Depra.Asset.Exceptions;
using Depra.Asset.Files;
using Depra.Asset.ValueObjects;
using UnityEditor;
using Object = UnityEngine.Object;

namespace Depra.Assets.Editor.Files
namespace Depra.Asset.Editor.Files
{
public sealed class PreloadedAsset<TAsset> : IAssetFile<TAsset>, IDisposable where TAsset : Object
{
Expand Down
Binary file added Plugins/Depra.Asset.dll
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed Plugins/Depra.Assets.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Depra.Assets.Unity",
"rootNamespace": "Depra.Assets",
"name": "Depra.Asset.Unity",
"rootNamespace": "Depra.Asset",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Depra.Assets.dll"
"Depra.Asset.dll"
],
"autoReferenced": true,
"defineConstraints": [],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Runtime/Exceptions/AssetCanNotBeLoaded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace Depra.Assets.Exceptions
namespace Depra.Asset.Exceptions
{
internal sealed class AssetCanNotBeLoaded : Exception
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Exceptions/Guard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.IO;
using System.Runtime.CompilerServices;

namespace Depra.Assets.Exceptions
namespace Depra.Asset.Exceptions
{
internal static class Guard
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Extensions/DirectoryInfoExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.IO;
using System.Runtime.CompilerServices;

namespace Depra.Assets.Extensions
namespace Depra.Asset.Extensions
{
public static class DirectoryInfoExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Runtime.CompilerServices;

namespace Depra.Assets.Extensions
namespace Depra.Asset.Extensions
{
public static class StringExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Extensions/TaskExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;

namespace Depra.Assets.Extensions
namespace Depra.Asset.Extensions
{
internal static class TaskExtensions
{
Expand Down
18 changes: 18 additions & 0 deletions Runtime/Files.Bundles/Depra.Assets.Bundles.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Depra.Asset.Bundles",
"rootNamespace": "Depra.Asset.Bundles",
"references": [
"GUID:ce2ab5ef472b35f498b9d47a89be9396"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Depra.Asset.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
3 changes: 3 additions & 0 deletions Runtime/Files.Bundles/Depra.Assets.Bundles.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace Depra.Assets.Files.Bundles.Exceptions
namespace Depra.Asset.Files.Bundles.Exceptions
{
internal sealed class AssetBundleFileNotLoaded : Exception
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Files.Bundles/Exceptions/AssetBundleNotLoaded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;

namespace Depra.Assets.Files.Bundles.Exceptions
namespace Depra.Asset.Files.Bundles.Exceptions
{
internal sealed class AssetBundleNotLoaded : Exception
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Files.Bundles/Exceptions/UnityWebRequestFailed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using UnityEngine.Networking;

namespace Depra.Assets.Files.Bundles.Exceptions
namespace Depra.Asset.Files.Bundles.Exceptions
{
internal sealed class UnityWebRequestFailed : Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Threading.Tasks;
using UnityEngine;

namespace Depra.Assets.Files.Bundles.Extensions
namespace Depra.Asset.Files.Bundles.Extensions
{
internal static class AssetBundleCreateRequestExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using UnityEngine;
using Object = UnityEngine.Object;

namespace Depra.Assets.Files.Bundles.Extensions
namespace Depra.Asset.Files.Bundles.Extensions
{
internal static class AssetBundleRequestExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Files.Bundles.Exceptions;
using Depra.Asset.Files.Bundles.Exceptions;
using UnityEngine.Networking;

namespace Depra.Assets.Files.Bundles.Extensions
namespace Depra.Asset.Files.Bundles.Extensions
{
internal static class UnityWebRequestAsyncOperationExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using UnityEngine.Networking;

namespace Depra.Assets.Files.Bundles.Extensions
namespace Depra.Asset.Files.Bundles.Extensions
{
internal static class UnityWebRequestExtensions
{
Expand Down
12 changes: 6 additions & 6 deletions Runtime/Files.Bundles/Files/AssetBundleAssetFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Delegates;
using Depra.Assets.Exceptions;
using Depra.Assets.Files.Bundles.Exceptions;
using Depra.Assets.Files.Bundles.Extensions;
using Depra.Assets.ValueObjects;
using Depra.Asset.Delegates;
using Depra.Asset.Exceptions;
using Depra.Asset.Files.Bundles.Exceptions;
using Depra.Asset.Files.Bundles.Extensions;
using Depra.Asset.ValueObjects;
using UnityEngine;
using Object = UnityEngine.Object;

namespace Depra.Assets.Files.Bundles
namespace Depra.Asset.Files.Bundles
{
public sealed class AssetBundleAssetFile<TAsset> : IAssetFile<TAsset>, IDisposable where TAsset : Object
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Depra.Assets.Files.Bundles.Exceptions;
using Depra.Assets.ValueObjects;
using Depra.Asset.Files.Bundles.Exceptions;
using Depra.Asset.ValueObjects;
using UnityEngine;

namespace Depra.Assets.Files.Bundles
namespace Depra.Asset.Files.Bundles
{
internal static class AssetBundleDependenciesExtractor
{
Expand Down
12 changes: 6 additions & 6 deletions Runtime/Files.Bundles/Files/AssetBundleFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Delegates;
using Depra.Assets.Exceptions;
using Depra.Assets.Files.Bundles.Exceptions;
using Depra.Assets.Files.Bundles.Sources;
using Depra.Assets.ValueObjects;
using Depra.Asset.Delegates;
using Depra.Asset.Exceptions;
using Depra.Asset.Files.Bundles.Exceptions;
using Depra.Asset.Files.Bundles.Sources;
using Depra.Asset.ValueObjects;
using UnityEngine;

namespace Depra.Assets.Files.Bundles
namespace Depra.Asset.Files.Bundles
{
public sealed class AssetBundleFile : IAssetFile<AssetBundle>, IDisposable
{
Expand Down
8 changes: 4 additions & 4 deletions Runtime/Files.Bundles/Files/AssetBundleUri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// © 2023-2024 Nikolay Melnikov <[email protected]>

using System.IO;
using Depra.Assets.Extensions;
using Depra.Assets.ValueObjects;
//using Depra.Assets.Extensions;
using Depra.Asset.ValueObjects;

namespace Depra.Assets.Files.Bundles
namespace Depra.Asset.Files.Bundles
{
public sealed record AssetBundleUri : IAssetUri
{
Expand All @@ -20,7 +20,7 @@ public sealed record AssetBundleUri : IAssetUri
public AssetBundleUri(string path)
{
_fileInfo = new FileInfo(path);
_fileInfo.Directory.Require();
//_fileInfo.Directory.Require();

Name = string.IsNullOrEmpty(Extension)
? _fileInfo.Name
Expand Down
8 changes: 4 additions & 4 deletions Runtime/Files.Bundles/Sources/AssetBundleFromFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Exceptions;
using Depra.Assets.Files.Bundles.Extensions;
using Depra.Assets.ValueObjects;
using Depra.Asset.Exceptions;
using Depra.Asset.Files.Bundles.Extensions;
using Depra.Asset.ValueObjects;
using UnityEngine;

namespace Depra.Assets.Files.Bundles.Sources
namespace Depra.Asset.Files.Bundles.Sources
{
public readonly struct AssetBundleFromFile : IAssetBundleSource
{
Expand Down
8 changes: 4 additions & 4 deletions Runtime/Files.Bundles/Sources/AssetBundleFromMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Exceptions;
using Depra.Assets.Files.Bundles.Extensions;
using Depra.Assets.ValueObjects;
using Depra.Asset.Exceptions;
using Depra.Asset.Files.Bundles.Extensions;
using Depra.Asset.ValueObjects;
using UnityEngine;

namespace Depra.Assets.Files.Bundles.Sources
namespace Depra.Asset.Files.Bundles.Sources
{
public readonly struct AssetBundleFromMemory : IAssetBundleSource
{
Expand Down
8 changes: 4 additions & 4 deletions Runtime/Files.Bundles/Sources/AssetBundleFromStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Depra.Assets.Exceptions;
using Depra.Assets.Files.Bundles.Extensions;
using Depra.Assets.ValueObjects;
using Depra.Asset.Exceptions;
using Depra.Asset.Files.Bundles.Extensions;
using Depra.Asset.ValueObjects;
using UnityEngine;

namespace Depra.Assets.Files.Bundles.Sources
namespace Depra.Asset.Files.Bundles.Sources
{
public readonly struct AssetBundleFromStream : IAssetBundleSource
{
Expand Down
Loading

0 comments on commit a40bff3

Please sign in to comment.