Class CGModuleOutputSlot
- Namespace
- FluffyUnderware.Curvy.Generator
Class defining a module's output slot
[Serializable]
public class CGModuleOutputSlot : CGModuleSlot
- Inheritance
-
CGModuleOutputSlot
- Inherited Members
Fields
LastRequestParameters
The request parameters used the last time the IOnRequestProcessing module returned data.
[CanBeNull]
public CGDataRequestParameter[] LastRequestParameters
Field Value
Properties
Data
The output data. Can contain either:
- no element if not set yet or cleared using ClearData().
- one element if set through SetDataToElement<T>(T).
- zero, one or multiple elements if set through SetDataToCollection<T>(T[]).
[NotNull]
[ItemNotNull]
public CGData[] Data { get; set; }
Property Value
- CGData[]
OutputInfo
Information about the output slot
[CanBeNull]
public OutputSlotInfo OutputInfo { get; }
Property Value
Methods
CanLinkTo(CGModuleSlot)
Can a link be established between this slot and the other link?
public override bool CanLinkTo(CGModuleSlot other)
Parameters
otherCGModuleSlot
Returns
ClearData()
Sets Data to an empty array.
public void ClearData()
LinkTo(CGModuleSlot)
public override void LinkTo(CGModuleSlot inputSlot)
Parameters
inputSlotCGModuleSlot
LoadLinkedSlots()
protected override void LoadLinkedSlots()
SetDataToCollection<T>(T[])
Set Data to a collection of elements.
public void SetDataToCollection<T>(T[] elements) where T : CGData
Parameters
elementsT[]A non null collection that contains non null elements
Type Parameters
TA type inheriting from CGData
Exceptions
- ArgumentNullException
If elements is null, or has elements that are null
SetDataToElement<T>(T)
Set Data to a single element.
public void SetDataToElement<T>(T element) where T : CGData
Parameters
elementTA non null element
Type Parameters
TA type inheriting from CGData
Exceptions
- ArgumentNullException
If element is null
UnlinkFrom(CGModuleSlot)
Unlink the current slot from the specified other slot.
public override void UnlinkFrom(CGModuleSlot inputSlot)
Parameters
inputSlotCGModuleSlot