Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using UnityEngine.Scripting;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[Preserve, AttributeUsage(AttributeTargets.Class)]
|
||||
public class CreateInstanceOnStartAttribute : Attribute { }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 01a51f48470f91f49bad28eb4495aae5
|
||||
16
Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs
Normal file
16
Assets/Pacore/Runtime/Attributes/DetectInspectorChanges.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public sealed class DetectInspectorChangesAttribute : PropertyAttribute
|
||||
{
|
||||
public string ActionName { get; }
|
||||
|
||||
public DetectInspectorChangesAttribute(string function)
|
||||
{
|
||||
ActionName = function;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6221a3b81100d9f46b6e994a1e7bff20
|
||||
15
Assets/Pacore/Runtime/Attributes/InspectorCallable.cs
Normal file
15
Assets/Pacore/Runtime/Attributes/InspectorCallable.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class InspectorCallableAttribute : Attribute
|
||||
{
|
||||
public string ButtonName { get; }
|
||||
|
||||
public InspectorCallableAttribute(string name)
|
||||
{
|
||||
ButtonName = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1c2ef00bd0b8434e947092a95e39f13
|
||||
16
Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs
Normal file
16
Assets/Pacore/Runtime/Attributes/InspectorReadOnly.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public sealed class InspectorReadOnlyAttribute : PropertyAttribute
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public InspectorReadOnlyAttribute(string name = null)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0be78274c3c8f3746b0c073b602a914b
|
||||
24
Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs
Normal file
24
Assets/Pacore/Runtime/Attributes/MonoScriptAttribute.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class MonoScriptAttribute : PropertyAttribute
|
||||
{
|
||||
public Type InheritedFrom { get; }
|
||||
public Type MonoType { get; }
|
||||
|
||||
public MonoScriptAttribute(Type inherited, Type type = null)
|
||||
{
|
||||
InheritedFrom = inherited;
|
||||
MonoType = type;
|
||||
}
|
||||
|
||||
public MonoScriptAttribute(Type type = null)
|
||||
{
|
||||
InheritedFrom = null;
|
||||
MonoType = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc01f3f6c0d2ab84caa6ff319ae31142
|
||||
7
Assets/Pacore/Runtime/Attributes/StaticInspectorField.cs
Normal file
7
Assets/Pacore/Runtime/Attributes/StaticInspectorField.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public class StaticInspectorFieldAttribute : Attribute { }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b0614582475885c44bb1b9dabb0104a4
|
||||
Reference in New Issue
Block a user