mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2026-04-21 20:15:56 +08:00
fix
This commit is contained in:
parent
77f9e1e844
commit
498a1dc681
@ -10,19 +10,6 @@ using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DCFApixels.DragonECS.Unity
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DragonMemberWrapperAttribute : Attribute
|
||||
{
|
||||
public string WrappedFieldName;
|
||||
public DragonMemberWrapperAttribute(string wrappedFieldName)
|
||||
{
|
||||
WrappedFieldName = wrappedFieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace DCFApixels.DragonECS
|
||||
{
|
||||
|
||||
|
||||
@ -7,6 +7,16 @@ using UnityEngine;
|
||||
|
||||
namespace DCFApixels.DragonECS.Unity
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DragonMemberWrapperAttribute : Attribute
|
||||
{
|
||||
public string WrappedFieldName;
|
||||
public DragonMemberWrapperAttribute(string wrappedFieldName)
|
||||
{
|
||||
WrappedFieldName = wrappedFieldName;
|
||||
}
|
||||
}
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class ReferenceDropDownAttribute : PropertyAttribute
|
||||
{
|
||||
public readonly Type[] AllowTypes;
|
||||
@ -20,6 +30,7 @@ namespace DCFApixels.DragonECS.Unity
|
||||
Array.Sort(predicateTypes, (a, b) => string.Compare(a.AssemblyQualifiedName, b.AssemblyQualifiedName, StringComparison.Ordinal));
|
||||
}
|
||||
}
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class ReferenceDropDownWithoutAttribute : Attribute
|
||||
{
|
||||
public readonly Type[] PredicateTypes;
|
||||
@ -31,6 +42,7 @@ namespace DCFApixels.DragonECS.Unity
|
||||
Array.Sort(predicateTypes, (a, b) => string.Compare(a.AssemblyQualifiedName, b.AssemblyQualifiedName, StringComparison.Ordinal));
|
||||
}
|
||||
}
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DragonMetaBlockAttribute : PropertyAttribute { }
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user