Table of Contents

Class CGDataReference

Class referencing a particular module's output slot

[Serializable]
public class CGDataReference
Inheritance
CGDataReference

Remarks

When using, be sure to add the CGDataReferenceSelectorAttribute to the field

Constructors

CGDataReference()

public CGDataReference()

CGDataReference(CGModule, string)

public CGDataReference(CGModule module, string slotName)

Parameters

module CGModule
slotName string

CGDataReference(CurvyGenerator, string, string)

public CGDataReference(CurvyGenerator generator, string moduleName, string slotName)

Parameters

generator CurvyGenerator
moduleName string
slotName string

Properties

Data

public CGData[] Data { get; }

Property Value

CGData[]

HasValue

public bool HasValue { get; }

Property Value

bool

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Module

public CGModule Module { get; }

Property Value

CGModule

Slot

public CGModuleOutputSlot Slot { get; }

Property Value

CGModuleOutputSlot

SlotName

public string SlotName { get; }

Property Value

string

Methods

Clear()

public void Clear()

GetAllData<T>()

public T[] GetAllData<T>() where T : CGData

Returns

T[]

Type Parameters

T

GetData<T>()

public T GetData<T>() where T : CGData

Returns

T

Type Parameters

T