From d3c7505abfe7383f01a752a7a01aeed94e3b7b78 Mon Sep 17 00:00:00 2001 From: Pasha Date: Sat, 24 Jan 2026 19:55:00 +0000 Subject: [PATCH] Moved shared into runtime --- .../Pacore/Editor/Drawers/DetectInspectorChangesDrawer.cs | 2 +- Assets/Pacore/Editor/Drawers/InspectorReadOnlyDrawer.cs | 2 +- Assets/Pacore/Editor/Drawers/MonoBehaviourDrawer.cs | 2 +- Assets/Pacore/Editor/Drawers/MonoScriptDrawer.cs | 2 +- Assets/Pacore/Editor/Pacore.Editor.asmdef | 2 +- Assets/Pacore/{Shared => Runtime}/Attributes.meta | 0 .../Attributes/CreateInstanceOnStart.cs | 2 +- .../Attributes/CreateInstanceOnStart.cs.meta | 0 .../Attributes/DetectInspectorChanges.cs | 2 +- .../Attributes/DetectInspectorChanges.cs.meta | 0 .../{Shared => Runtime}/Attributes/InspectorCallable.cs | 2 +- .../Attributes/InspectorCallable.cs.meta | 0 .../{Shared => Runtime}/Attributes/InspectorReadOnly.cs | 2 +- .../Attributes/InspectorReadOnly.cs.meta | 0 .../{Shared => Runtime}/Attributes/MonoScriptAttribute.cs | 6 +++--- .../Attributes/MonoScriptAttribute.cs.meta | 0 Assets/Pacore/Runtime/ClassAttributeCache.cs | 2 +- Assets/Pacore/Runtime/CreateInstanceOnStartLoader.cs | 4 ++-- Assets/Pacore/{Shared => Runtime}/DevTools.meta | 0 .../Pacore/{Shared => Runtime}/DevTools/CodeProfiler.cs | 2 +- .../{Shared => Runtime}/DevTools/CodeProfiler.cs.meta | 0 Assets/Pacore/Shared.meta | 8 -------- Assets/Pacore/Shared/Pacore.Shared.asmdef | 3 --- Assets/Pacore/Shared/Pacore.Shared.asmdef.meta | 7 ------- Assets/TestMonoBehaviour.cs | 2 +- 25 files changed, 17 insertions(+), 35 deletions(-) rename Assets/Pacore/{Shared => Runtime}/Attributes.meta (100%) rename Assets/Pacore/{Shared => Runtime}/Attributes/CreateInstanceOnStart.cs (78%) rename Assets/Pacore/{Shared => Runtime}/Attributes/CreateInstanceOnStart.cs.meta (100%) rename Assets/Pacore/{Shared => Runtime}/Attributes/DetectInspectorChanges.cs (89%) rename Assets/Pacore/{Shared => Runtime}/Attributes/DetectInspectorChanges.cs.meta (100%) rename Assets/Pacore/{Shared => Runtime}/Attributes/InspectorCallable.cs (87%) rename Assets/Pacore/{Shared => Runtime}/Attributes/InspectorCallable.cs.meta (100%) rename Assets/Pacore/{Shared => Runtime}/Attributes/InspectorReadOnly.cs (93%) rename Assets/Pacore/{Shared => Runtime}/Attributes/InspectorReadOnly.cs.meta (100%) rename Assets/Pacore/{Shared => Runtime}/Attributes/MonoScriptAttribute.cs (85%) rename Assets/Pacore/{Shared => Runtime}/Attributes/MonoScriptAttribute.cs.meta (100%) rename Assets/Pacore/{Shared => Runtime}/DevTools.meta (100%) rename Assets/Pacore/{Shared => Runtime}/DevTools/CodeProfiler.cs (96%) rename Assets/Pacore/{Shared => Runtime}/DevTools/CodeProfiler.cs.meta (100%) delete mode 100644 Assets/Pacore/Shared.meta delete mode 100644 Assets/Pacore/Shared/Pacore.Shared.asmdef delete mode 100644 Assets/Pacore/Shared/Pacore.Shared.asmdef.meta diff --git a/Assets/Pacore/Editor/Drawers/DetectInspectorChangesDrawer.cs b/Assets/Pacore/Editor/Drawers/DetectInspectorChangesDrawer.cs index b092b41..3b20c42 100644 --- a/Assets/Pacore/Editor/Drawers/DetectInspectorChangesDrawer.cs +++ b/Assets/Pacore/Editor/Drawers/DetectInspectorChangesDrawer.cs @@ -1,4 +1,4 @@ -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using System.Reflection; using UnityEditor; using UnityEngine; diff --git a/Assets/Pacore/Editor/Drawers/InspectorReadOnlyDrawer.cs b/Assets/Pacore/Editor/Drawers/InspectorReadOnlyDrawer.cs index ef8e244..695a77f 100644 --- a/Assets/Pacore/Editor/Drawers/InspectorReadOnlyDrawer.cs +++ b/Assets/Pacore/Editor/Drawers/InspectorReadOnlyDrawer.cs @@ -1,4 +1,4 @@ -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using UnityEditor; using UnityEngine; diff --git a/Assets/Pacore/Editor/Drawers/MonoBehaviourDrawer.cs b/Assets/Pacore/Editor/Drawers/MonoBehaviourDrawer.cs index c0dd846..d9acade 100644 --- a/Assets/Pacore/Editor/Drawers/MonoBehaviourDrawer.cs +++ b/Assets/Pacore/Editor/Drawers/MonoBehaviourDrawer.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.Reflection; -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using UnityEditor; using UnityEngine; using Object = UnityEngine.Object; diff --git a/Assets/Pacore/Editor/Drawers/MonoScriptDrawer.cs b/Assets/Pacore/Editor/Drawers/MonoScriptDrawer.cs index d2b0c13..5e68b76 100644 --- a/Assets/Pacore/Editor/Drawers/MonoScriptDrawer.cs +++ b/Assets/Pacore/Editor/Drawers/MonoScriptDrawer.cs @@ -1,4 +1,4 @@ -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using System.Collections.Generic; using UnityEditor; using UnityEngine; diff --git a/Assets/Pacore/Editor/Pacore.Editor.asmdef b/Assets/Pacore/Editor/Pacore.Editor.asmdef index 80def0d..703acb4 100644 --- a/Assets/Pacore/Editor/Pacore.Editor.asmdef +++ b/Assets/Pacore/Editor/Pacore.Editor.asmdef @@ -2,7 +2,7 @@ "name": "Pacore.Editor", "rootNamespace": "", "references": [ - "GUID:73bc4dcce6d82e44c8fe9738b987d694" + "GUID:92a828b1c98146b48b5a7061ab1e8d2e" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Assets/Pacore/Shared/Attributes.meta b/Assets/Pacore/Runtime/Attributes.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes.meta rename to Assets/Pacore/Runtime/Attributes.meta diff --git a/Assets/Pacore/Shared/Attributes/CreateInstanceOnStart.cs b/Assets/Pacore/Runtime/Attributes/CreateInstanceOnStart.cs similarity index 78% rename from Assets/Pacore/Shared/Attributes/CreateInstanceOnStart.cs rename to Assets/Pacore/Runtime/Attributes/CreateInstanceOnStart.cs index 4f176c7..b895053 100644 --- a/Assets/Pacore/Shared/Attributes/CreateInstanceOnStart.cs +++ b/Assets/Pacore/Runtime/Attributes/CreateInstanceOnStart.cs @@ -1,7 +1,7 @@ using UnityEngine.Scripting; using System; -namespace PashaBibko.Pacore.Shared.Attributes +namespace PashaBibko.Pacore.Attributes { [Preserve, AttributeUsage(AttributeTargets.Class)] public class CreateInstanceOnStartAttribute : Attribute { } diff --git a/Assets/Pacore/Shared/Attributes/CreateInstanceOnStart.cs.meta b/Assets/Pacore/Runtime/Attributes/CreateInstanceOnStart.cs.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes/CreateInstanceOnStart.cs.meta rename to Assets/Pacore/Runtime/Attributes/CreateInstanceOnStart.cs.meta diff --git a/Assets/Pacore/Shared/Attributes/DetectInspectorChanges.cs b/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs similarity index 89% rename from Assets/Pacore/Shared/Attributes/DetectInspectorChanges.cs rename to Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs index 21048c0..9f052a6 100644 --- a/Assets/Pacore/Shared/Attributes/DetectInspectorChanges.cs +++ b/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs @@ -2,7 +2,7 @@ using UnityEngine; using System; -namespace PashaBibko.Pacore.Shared.Attributes +namespace PashaBibko.Pacore.Attributes { [MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] public sealed class DetectInspectorChangesAttribute : PropertyAttribute diff --git a/Assets/Pacore/Shared/Attributes/DetectInspectorChanges.cs.meta b/Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes/DetectInspectorChanges.cs.meta rename to Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs.meta diff --git a/Assets/Pacore/Shared/Attributes/InspectorCallable.cs b/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs similarity index 87% rename from Assets/Pacore/Shared/Attributes/InspectorCallable.cs rename to Assets/Pacore/Runtime/Attributes/InspectorCallable.cs index c9239da..29cd136 100644 --- a/Assets/Pacore/Shared/Attributes/InspectorCallable.cs +++ b/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs @@ -1,7 +1,7 @@ using JetBrains.Annotations; using System; -namespace PashaBibko.Pacore.Shared.Attributes +namespace PashaBibko.Pacore.Attributes { [MeansImplicitUse, AttributeUsage(AttributeTargets.Method)] public class InspectorCallableAttribute : Attribute diff --git a/Assets/Pacore/Shared/Attributes/InspectorCallable.cs.meta b/Assets/Pacore/Runtime/Attributes/InspectorCallable.cs.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes/InspectorCallable.cs.meta rename to Assets/Pacore/Runtime/Attributes/InspectorCallable.cs.meta diff --git a/Assets/Pacore/Shared/Attributes/InspectorReadOnly.cs b/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs similarity index 93% rename from Assets/Pacore/Shared/Attributes/InspectorReadOnly.cs rename to Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs index 5b9845f..8451379 100644 --- a/Assets/Pacore/Shared/Attributes/InspectorReadOnly.cs +++ b/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs @@ -2,7 +2,7 @@ using JetBrains.Annotations; using UnityEngine; using System; -namespace PashaBibko.Pacore.Shared.Attributes +namespace PashaBibko.Pacore.Attributes { #if UNITY_EDITOR [MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] diff --git a/Assets/Pacore/Shared/Attributes/InspectorReadOnly.cs.meta b/Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes/InspectorReadOnly.cs.meta rename to Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs.meta diff --git a/Assets/Pacore/Shared/Attributes/MonoScriptAttribute.cs b/Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs similarity index 85% rename from Assets/Pacore/Shared/Attributes/MonoScriptAttribute.cs rename to Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs index 0c43277..ca79553 100644 --- a/Assets/Pacore/Shared/Attributes/MonoScriptAttribute.cs +++ b/Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs @@ -1,7 +1,7 @@ -using System; -using UnityEngine; +using UnityEngine; +using System; -namespace PashaBibko.Pacore.Shared.Attributes +namespace PashaBibko.Pacore.Attributes { [AttributeUsage(AttributeTargets.Field)] public class MonoScriptAttribute : PropertyAttribute diff --git a/Assets/Pacore/Shared/Attributes/MonoScriptAttribute.cs.meta b/Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs.meta similarity index 100% rename from Assets/Pacore/Shared/Attributes/MonoScriptAttribute.cs.meta rename to Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs.meta diff --git a/Assets/Pacore/Runtime/ClassAttributeCache.cs b/Assets/Pacore/Runtime/ClassAttributeCache.cs index a444ddc..d12efd2 100644 --- a/Assets/Pacore/Runtime/ClassAttributeCache.cs +++ b/Assets/Pacore/Runtime/ClassAttributeCache.cs @@ -5,7 +5,7 @@ using System.Linq; using System; using UnityEngine; -namespace PashaBibko.Pacore.Runtime +namespace PashaBibko.Pacore { public static class ClassAttributeCache { diff --git a/Assets/Pacore/Runtime/CreateInstanceOnStartLoader.cs b/Assets/Pacore/Runtime/CreateInstanceOnStartLoader.cs index 64ecf10..03edfd9 100644 --- a/Assets/Pacore/Runtime/CreateInstanceOnStartLoader.cs +++ b/Assets/Pacore/Runtime/CreateInstanceOnStartLoader.cs @@ -1,11 +1,11 @@ -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using System.Collections.ObjectModel; using UnityEngine; using System; using Object = UnityEngine.Object; -namespace PashaBibko.Pacore.Runtime +namespace PashaBibko.Pacore { public static class CreateInstanceOnStartLoader { diff --git a/Assets/Pacore/Shared/DevTools.meta b/Assets/Pacore/Runtime/DevTools.meta similarity index 100% rename from Assets/Pacore/Shared/DevTools.meta rename to Assets/Pacore/Runtime/DevTools.meta diff --git a/Assets/Pacore/Shared/DevTools/CodeProfiler.cs b/Assets/Pacore/Runtime/DevTools/CodeProfiler.cs similarity index 96% rename from Assets/Pacore/Shared/DevTools/CodeProfiler.cs rename to Assets/Pacore/Runtime/DevTools/CodeProfiler.cs index 02c4722..dcd3f8d 100644 --- a/Assets/Pacore/Shared/DevTools/CodeProfiler.cs +++ b/Assets/Pacore/Runtime/DevTools/CodeProfiler.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using System; -namespace PashaBibko.Pacore.Shared.DevTools +namespace PashaBibko.Pacore.DevTools { public static class CodeProfiler { diff --git a/Assets/Pacore/Shared/DevTools/CodeProfiler.cs.meta b/Assets/Pacore/Runtime/DevTools/CodeProfiler.cs.meta similarity index 100% rename from Assets/Pacore/Shared/DevTools/CodeProfiler.cs.meta rename to Assets/Pacore/Runtime/DevTools/CodeProfiler.cs.meta diff --git a/Assets/Pacore/Shared.meta b/Assets/Pacore/Shared.meta deleted file mode 100644 index 5a8cb27..0000000 --- a/Assets/Pacore/Shared.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e8fb5ee44809416428d079d41246c55b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Pacore/Shared/Pacore.Shared.asmdef b/Assets/Pacore/Shared/Pacore.Shared.asmdef deleted file mode 100644 index 3c6530b..0000000 --- a/Assets/Pacore/Shared/Pacore.Shared.asmdef +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "Pacore.Shared" -} diff --git a/Assets/Pacore/Shared/Pacore.Shared.asmdef.meta b/Assets/Pacore/Shared/Pacore.Shared.asmdef.meta deleted file mode 100644 index 45c7ee6..0000000 --- a/Assets/Pacore/Shared/Pacore.Shared.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 73bc4dcce6d82e44c8fe9738b987d694 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestMonoBehaviour.cs b/Assets/TestMonoBehaviour.cs index 6a51798..6900a3a 100644 --- a/Assets/TestMonoBehaviour.cs +++ b/Assets/TestMonoBehaviour.cs @@ -1,4 +1,4 @@ -using PashaBibko.Pacore.Shared.Attributes; +using PashaBibko.Pacore.Attributes; using UnityEngine; [CreateInstanceOnStart] public class TestMonoBehaviour : MonoBehaviour