Remove: Alchemy.Editor.Internal namespace

This commit is contained in:
AnnulusGames 2024-02-16 21:45:12 +09:00
parent 43d241c0bd
commit 3d148e1c7d
28 changed files with 19 additions and 62 deletions

View File

@ -1,10 +1,9 @@
using System.Reflection;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.UIElements;
using Alchemy.Inspector;
using Alchemy.Editor.Internal;
using UnityEditor.UIElements;
#if ALCHEMY_SUPPORT_SERIALIZATION
using Alchemy.Serialization;
#endif

View File

@ -1,9 +1,8 @@
using UnityEngine;
using UnityEngine.UIElements;
using Alchemy.Inspector;
using Alchemy.Editor.Internal;
using Alchemy.Editor.Elements;
using UnityEditor;
using Alchemy.Inspector;
using Alchemy.Editor.Elements;
namespace Alchemy.Editor.Drawers
{

View File

@ -6,7 +6,6 @@ using UnityEngine.UIElements;
using UnityEditor;
using UnityEditor.UIElements;
using Alchemy.Inspector;
using Alchemy.Editor.Internal;
using Alchemy.Editor.Elements;
namespace Alchemy.Editor.Drawers

View File

@ -2,7 +2,6 @@ using System;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
using Alchemy.Inspector;
namespace Alchemy.Editor.Elements

View File

@ -1,9 +1,6 @@
using System;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
using Alchemy.Inspector;
namespace Alchemy.Editor.Elements

View File

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using Alchemy.Editor.Internal;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;

View File

@ -5,7 +5,6 @@ using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -1,7 +1,6 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -3,7 +3,6 @@ using UnityEngine.Assertions;
using UnityEngine.UIElements;
using UnityEditor;
using UnityEditor.UIElements;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -3,7 +3,6 @@ using System.Collections;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEngine.Assertions;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -1,6 +1,4 @@
using System;
using System.Reflection;
using Alchemy.Editor.Internal;
using UnityEditor;
using UnityEngine.UIElements;

View File

@ -1,10 +1,8 @@
using System;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -3,7 +3,6 @@ using System.Reflection;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
using Alchemy.Inspector;
namespace Alchemy.Editor.Elements

View File

@ -6,7 +6,6 @@ using UnityEditor.IMGUI.Controls;
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UIElements;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor.Elements
{

View File

@ -1,6 +1,5 @@
using UnityEditor;
using UnityEngine;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor
{

View File

@ -2,7 +2,6 @@ using System.Linq;
using UnityEditor;
using UnityEngine;
using Alchemy.Hierarchy;
using Alchemy.Editor.Internal;
namespace Alchemy.Editor
{

View File

@ -2,7 +2,7 @@ using UnityEngine;
using UnityEditor;
using System;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
// Rererence: https://www.foundations.unity.com/fundamentals/color-palette

View File

@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
internal static class EditorIcons
{

View File

@ -6,7 +6,7 @@ using UnityEngine.Assertions;
using Alchemy.Inspector;
using System;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
internal static class GUIHelper
{

View File

@ -12,7 +12,7 @@ using Alchemy.Editor.Elements;
using Alchemy.Serialization;
#endif
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
internal static class InspectorHelper
{

View File

@ -2,14 +2,14 @@ using System;
using System.Reflection;
using UnityEngine.UIElements;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
using Editor = UnityEditor.Editor;
/// <summary>
/// Call the Unity internal API using reflection. This may not work depending on your Unity version.
/// </summary>
public static class InternalAPIHelper
internal static class InternalAPIHelper
{
static readonly Assembly EditorAssembly = Assembly.GetAssembly(typeof(Editor));

View File

@ -1,9 +1,9 @@
using System;
using System.Reflection;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
public static class MemberInfoExtensions
internal static class MemberInfoExtensions
{
public static bool HasCustomAttribute<T>(this MemberInfo memberInfo) where T : Attribute
{

View File

@ -4,11 +4,10 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using UnityEngine;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
public static class ReflectionHelper
internal static class ReflectionHelper
{
static readonly Dictionary<(Type, string, BindingFlags, bool), FieldInfo> cacheFieldInfo = new();
static readonly Dictionary<(Type, string, BindingFlags, bool), MethodInfo> cacheMethodInfo = new();

View File

@ -5,9 +5,9 @@ using UnityEngine;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
public sealed class SerializeReferenceDropdownItem : AdvancedDropdownItem
internal sealed class SerializeReferenceDropdownItem : AdvancedDropdownItem
{
public readonly Type type;
public SerializeReferenceDropdownItem(Type type, string name) : base(name)
@ -17,7 +17,7 @@ namespace Alchemy.Editor.Internal
}
}
public sealed class SerializeReferenceDropdown : AdvancedDropdown
internal sealed class SerializeReferenceDropdown : AdvancedDropdown
{
private static readonly float headerHeight = EditorGUIUtility.singleLineHeight * 2f;
private static readonly int maxNamespaceNestCount = 16;

View File

@ -1,11 +0,0 @@
using System;
using System.Reflection;
using UnityEditor;
namespace Alchemy.Editor.Internal
{
public static class SerializedObjectExtensions
{
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: e70b6aca000bb4a698521391868e2f98
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -7,9 +7,9 @@ using System.Text.RegularExpressions;
using UnityEngine;
using UnityEditor;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
public static class SerializedPropertyExtensions
internal static class SerializedPropertyExtensions
{
public static bool TryGetAttribute<TAttribute>(this SerializedProperty property, out TAttribute result) where TAttribute : Attribute
{

View File

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
namespace Alchemy.Editor.Internal
namespace Alchemy.Editor
{
internal static class TypeHelper
{