diff --git a/src/Collections.meta b/src/Collections.meta new file mode 100644 index 0000000..6d26a82 --- /dev/null +++ b/src/Collections.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e026d1a6d4fd884ea7324b6097703c5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Collections/EcsSpan.cs b/src/Collections/EcsSpan.cs index a463302..d95f773 100644 --- a/src/Collections/EcsSpan.cs +++ b/src/Collections/EcsSpan.cs @@ -93,10 +93,10 @@ namespace DCFApixels.DragonECS #region Object #pragma warning disable CS0809 // Устаревший член переопределяет неустаревший член - [Obsolete($"Equals() on {nameof(EcsSpan)} will always throw an exception. Use the equality operator instead.")] + [Obsolete("Equals() on EcsSpan will always throw an exception. Use the equality operator instead.")] [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => throw new NotSupportedException(); - [Obsolete($"GetHashCode() on {nameof(EcsSpan)} will always throw an exception.")] + [Obsolete("GetHashCode() on EcsSpan will always throw an exception.")] [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => throw new NotSupportedException(); #pragma warning restore CS0809 // Устаревший член переопределяет неустаревший член diff --git a/src/Debug/Interfaces/IEcsDebugMetaProvider.cs.meta b/src/Collections/EcsSpan.cs.meta similarity index 83% rename from src/Debug/Interfaces/IEcsDebugMetaProvider.cs.meta rename to src/Collections/EcsSpan.cs.meta index 793a2f6..0fc6d1c 100644 --- a/src/Debug/Interfaces/IEcsDebugMetaProvider.cs.meta +++ b/src/Collections/EcsSpan.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2356ad2f91cd0a84db3d572a9f3c33f5 +guid: 55c6215b2c0f45849b191532a01e1dfe MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/src/Debug/EcsDebugUtility.cs b/src/Debug/EcsDebugUtility.cs index d2019a2..af4b262 100644 --- a/src/Debug/EcsDebugUtility.cs +++ b/src/Debug/EcsDebugUtility.cs @@ -340,13 +340,13 @@ namespace DCFApixels.DragonECS #region ReflectionExtensions [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool TryGetCustomAttribute(this Type self, out T attribute) where T : Attribute + public static bool TryGetCustomAttribute(this Type self, out T attribute) where T : Attribute { attribute = self.GetCustomAttribute(); return attribute != null; } [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool TryGetCustomAttribute(this MemberInfo self, out T attribute) where T : Attribute + public static bool TryGetCustomAttribute(this MemberInfo self, out T attribute) where T : Attribute { attribute = self.GetCustomAttribute(); return attribute != null; diff --git a/src/Debug/Interfaces/IEcsMetaProvider.cs.meta b/src/Debug/Interfaces/IEcsMetaProvider.cs.meta new file mode 100644 index 0000000..b99941e --- /dev/null +++ b/src/Debug/Interfaces/IEcsMetaProvider.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5379b4d037441ed4cb4171648c1453d4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Debug/MetaAttributes/MetaColorAttribute.cs b/src/Debug/MetaAttributes/MetaColorAttribute.cs index ea0bd90..3538942 100644 --- a/src/Debug/MetaAttributes/MetaColorAttribute.cs +++ b/src/Debug/MetaAttributes/MetaColorAttribute.cs @@ -10,7 +10,7 @@ namespace DCFApixels.DragonECS public byte R => color.r; public byte G => color.g; public byte B => color.b; - public float FloatT => R / (float)byte.MaxValue; + public float FloatR => R / (float)byte.MaxValue; public float FloatG => G / (float)byte.MaxValue; public float FloatB => B / (float)byte.MaxValue; public MetaColorAttribute(byte r, byte g, byte b) => color = new MetaColor(r, g, b, 255); @@ -69,6 +69,10 @@ namespace DCFApixels.DragonECS [FieldOffset(2)] public readonly byte g; [FieldOffset(1)] public readonly byte b; [FieldOffset(0)] public readonly byte a; + public float FloatR => r / (float)byte.MaxValue; + public float FloatG => g / (float)byte.MaxValue; + public float FloatB => b / (float)byte.MaxValue; + public float FloatA => a / (float)byte.MaxValue; public MetaColor(byte r, byte g, byte b) : this() { this.r = r; diff --git a/src/Utils/GenericEnumerable.cs.meta b/src/Utils/GenericEnumerable.cs.meta new file mode 100644 index 0000000..358d843 --- /dev/null +++ b/src/Utils/GenericEnumerable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 38e5b41bce0941b488ae64c200dcf965 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: