This commit is contained in:
2021-06-13 10:28:03 +02:00
parent eb70603c85
commit df2d24cbd3
7487 changed files with 943244 additions and 0 deletions

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -0,0 +1,8 @@
using System;
namespace Unity.VisualScripting
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class PortLabelHiddenAttribute : Attribute
{ }
}

View File

@@ -0,0 +1,8 @@
using System;
namespace Unity.VisualScripting
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public sealed class SpecialUnitAttribute : Attribute
{ }
}

View File

@@ -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;
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}