Class CGDataReference
- Namespace
- FluffyUnderware.Curvy.Generator
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
CGDataReference(CurvyGenerator, string, string)
public CGDataReference(CurvyGenerator generator, string moduleName, string slotName)
Parameters
generatorCurvyGeneratormoduleNamestringslotNamestring
Properties
Data
public CGData[] Data { get; }
Property Value
- CGData[]
HasValue
public bool HasValue { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Module
public CGModule Module { get; }
Property Value
Slot
public CGModuleOutputSlot Slot { get; }
Property Value
SlotName
public string SlotName { get; }
Property Value
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