Removed Jetbrains.Annotations

This commit is contained in:
2026-01-28 21:09:54 +00:00
parent 2034818678
commit 2740b40d81
4 changed files with 7 additions and 19 deletions

View File

@@ -1,15 +1,14 @@
using JetBrains.Annotations; using UnityEngine;
using UnityEngine;
using System; using System;
namespace PashaBibko.Pacore.Attributes namespace PashaBibko.Pacore.Attributes
{ {
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)] [AttributeUsage(validOn: AttributeTargets.Field)]
public sealed class DetectInspectorChangesAttribute : PropertyAttribute public sealed class DetectInspectorChangesAttribute : PropertyAttribute
{ {
public string ActionName { get; } public string ActionName { get; }
public DetectInspectorChangesAttribute([NotNull] string function) public DetectInspectorChangesAttribute(string function)
{ {
ActionName = function; ActionName = function;
} }

View File

@@ -1,9 +1,8 @@
using JetBrains.Annotations; using System;
using System;
namespace PashaBibko.Pacore.Attributes namespace PashaBibko.Pacore.Attributes
{ {
[MeansImplicitUse, AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]
public class InspectorCallableAttribute : Attribute public class InspectorCallableAttribute : Attribute
{ {
public string ButtonName { get; } public string ButtonName { get; }

View File

@@ -1,11 +1,9 @@
using JetBrains.Annotations;
using UnityEngine; using UnityEngine;
using System; using System;
namespace PashaBibko.Pacore.Attributes namespace PashaBibko.Pacore.Attributes
{ {
#if UNITY_EDITOR [AttributeUsage(validOn: AttributeTargets.Field)]
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)]
public sealed class InspectorReadOnlyAttribute : PropertyAttribute public sealed class InspectorReadOnlyAttribute : PropertyAttribute
{ {
public string Name { get; } public string Name { get; }
@@ -15,11 +13,4 @@ namespace PashaBibko.Pacore.Attributes
Name = name; Name = name;
} }
} }
#else // #if UNITY_EDITOR
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)]
public sealed class InspectorReadOnlyAttribute : Attribute
{
public InspectorReadOnlyAttribute(string _name = null) { }
}
#endif // UNITY_EDITOR
} }

View File

@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using JetBrains.Annotations;
using UnityEngine; using UnityEngine;
using System; using System;
@@ -8,7 +7,7 @@ namespace PashaBibko.Pacore.Threading
public static partial class ThreadSafe public static partial class ThreadSafe
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Try([NotNull] Action action, Action final = null) public static void Try(Action action, Action final = null)
{ {
try { action(); } try { action(); }