testss
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
|
||||
public class PortKeyAttribute : Attribute
|
||||
{
|
||||
public PortKeyAttribute(string key)
|
||||
{
|
||||
Ensure.That(nameof(key)).IsNotNull(key);
|
||||
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public string key { get; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
|
||||
public class PortLabelAttribute : Attribute
|
||||
{
|
||||
public PortLabelAttribute(string label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public string label { get; private set; }
|
||||
public bool hidden { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
|
||||
public class PortLabelHiddenAttribute : Attribute
|
||||
{ }
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class SpecialUnitAttribute : Attribute
|
||||
{ }
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class UnitFooterPortsAttribute : Attribute
|
||||
{
|
||||
public bool ControlInputs { get; set; } = false;
|
||||
public bool ControlOutputs { get; set; } = false;
|
||||
public bool ValueInputs { get; set; } = true;
|
||||
public bool ValueOutputs { get; set; } = true;
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class UnitHeaderInspectableAttribute : Attribute
|
||||
{
|
||||
public UnitHeaderInspectableAttribute() { }
|
||||
|
||||
public UnitHeaderInspectableAttribute(string label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public string label { get; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class UnitOrderAttribute : Attribute
|
||||
{
|
||||
public UnitOrderAttribute(int order)
|
||||
{
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
public int order { get; private set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class UnitShortTitleAttribute : Attribute
|
||||
{
|
||||
public UnitShortTitleAttribute(string title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public string title { get; private set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
|
||||
public sealed class UnitSubtitleAttribute : Attribute
|
||||
{
|
||||
public UnitSubtitleAttribute(string subtitle)
|
||||
{
|
||||
this.subtitle = subtitle;
|
||||
}
|
||||
|
||||
public string subtitle { get; private set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
|
||||
public sealed class UnitSurtitleAttribute : Attribute
|
||||
{
|
||||
public UnitSurtitleAttribute(string surtitle)
|
||||
{
|
||||
this.surtitle = surtitle;
|
||||
}
|
||||
|
||||
public string surtitle { get; private set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class UnitTitleAttribute : Attribute
|
||||
{
|
||||
public UnitTitleAttribute(string title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public string title { get; private set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user