Table of Contents

Class SlotInfo

Attribute to define slot properties

[AttributeUsage(AttributeTargets.Field)]
public class SlotInfo : Attribute
Inheritance
SlotInfo
Derived

Constructors

SlotInfo(string, Type)

protected SlotInfo(string name, Type type)

Parameters

name string
type Type

Fields

Array

Whether or not the slot accepts an array of CGData instances or a single instance of it

public bool Array

Field Value

bool

ArrayType

When Array is true, this value defines what type of Array is used

public SlotInfo.SlotArrayType ArrayType

Field Value

SlotInfo.SlotArrayType

DataType

public readonly Type DataType

Field Value

Type

Name

If empty Field's name will be used, with slight modifications

public string Name

Field Value

string

Tooltip

public string Tooltip

Field Value

string

Properties

DisplayName

If not null, this string will be used in the UI, while Name will be used in the data serialization and slots linking logic

public string DisplayName { get; set; }

Property Value

string

Methods

CheckDataTypes()

public void CheckDataTypes()

CompareTo(object)

public int CompareTo(object obj)

Parameters

obj object

Returns

int