Skip to content

Commit 3493d40

Browse files
committed
Refactor type search policies and providers structure
Moved type search-related interfaces and implementations into a new Editor/TypeSearch folder for better organization. Updated file paths and separated interface definitions from their default implementations.
1 parent 21dd46c commit 3493d40

24 files changed

+66
-15
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
namespace MackySoft.SerializeReferenceExtensions.Editor
4+
{
5+
public interface IIntrinsicTypePolicy
6+
{
7+
bool IsAllowed (Type candiateType);
8+
}
9+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/IIntrinsicTypePolicy.cs.meta renamed to Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/IIntrinsicTypePolicy.cs.meta

File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace MackySoft.SerializeReferenceExtensions.Editor
5+
{
6+
public interface ITypeCandiateProvider
7+
{
8+
IEnumerable<Type> GetTypeCandidates (Type baseType);
9+
}
10+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/ITypeCandiateProvider.cs.meta renamed to Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/ITypeCandiateProvider.cs.meta

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
namespace MackySoft.SerializeReferenceExtensions.Editor
4+
{
5+
public interface ITypeCompatibilityPolicy
6+
{
7+
bool IsCompatible (Type baseType, Type candiateType);
8+
}
9+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/ITypeCompatibilityPolicy.cs.meta renamed to Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/ITypeCompatibilityPolicy.cs.meta

File renamed without changes.

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/IntrinsicTypePolicy.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/IIntrinsicTypePolicy.cs renamed to Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/IntrinsicTypePolicy/DefaultIntrinsicTypePolicy.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
namespace MackySoft.SerializeReferenceExtensions.Editor
44
{
5-
public interface IIntrinsicTypePolicy
6-
{
7-
bool IsAllowed (Type candiateType);
8-
}
9-
105
public sealed class DefaultIntrinsicTypePolicy : IIntrinsicTypePolicy
116
{
127

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeSearch/IntrinsicTypePolicy/DefaultIntrinsicTypePolicy.cs.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)