Class CGModuleInputSlot
- Namespace
- FluffyUnderware.Curvy.Generator
Class defining a module's input slot
[Serializable]
public class CGModuleInputSlot : CGModuleSlot
- Inheritance
-
CGModuleInputSlot
- Inherited Members
Properties
InputInfo
public InputSlotInfo InputInfo { get; }
Property Value
IsOnRequest
Does this slot receive/provide data only on demand, as opposed to on refresh?
public override bool IsOnRequest { get; }
Property Value
- See Also
Methods
CanLinkTo(CGModuleSlot)
Can a link be established between this slot and the other link?
public override bool CanLinkTo(CGModuleSlot other)
Parameters
otherCGModuleSlot
Returns
GetAllData<T>(params CGDataRequestParameter[])
Gets the data from all modules connected to a certain input slot.
[NotNull]
public List<T> GetAllData<T>(params CGDataRequestParameter[] requests) where T : CGData
Parameters
requestsCGDataRequestParameter[]request parameters
Returns
- List<T>
the data
Type Parameters
Ttype of requested data
GetAllData<T>(out bool, params CGDataRequestParameter[])
Gets the data from all modules connected to a certain input slot.
[NotNull]
public List<T> GetAllData<T>(out bool isDataDisposable, params CGDataRequestParameter[] requests) where T : CGData
Parameters
isDataDisposableboolWhether the returned data can be disposed safely after using it, in order to make its resources available for future use, and thus reducing garbage collection. It is set to false when returned data is a direct reference to data stored by the module, and not a copy of it Dispose(bool) ArrayPool<T>
requestsCGDataRequestParameter[]request parameters
Returns
- List<T>
the data
Type Parameters
Ttype of requested data
GetData<T>(params CGDataRequestParameter[])
Gets the data from the module connected to a certain input slot. If more than one module is connected, the first module's data is returned
[CanBeNull]
public T GetData<T>(params CGDataRequestParameter[] requests) where T : CGData
Parameters
requestsCGDataRequestParameter[]request parameters
Returns
- T
the data
Type Parameters
Ttype of requested data
GetData<T>(out bool, params CGDataRequestParameter[])
Gets the data from the module connected to a certain input slot. If more than one module is connected, the first module's data is returned
[CanBeNull]
public T GetData<T>(out bool isDataDisposable, params CGDataRequestParameter[] requests) where T : CGData
Parameters
isDataDisposableboolWhether the returned data can be disposed safely after using it, in order to make its resources available for future use, and thus reducing garbage collection. It is set to false when returned data is a direct reference to data stored by the module, and not a copy of it Dispose(bool) ArrayPool<T>
requestsCGDataRequestParameter[]request parameters
Returns
- T
the data
Type Parameters
Ttype of requested data
LinkTo(CGModuleSlot)
public override void LinkTo(CGModuleSlot outputSlot)
Parameters
outputSlotCGModuleSlot
LoadLinkedSlots()
protected override void LoadLinkedSlots()
SourceSlot(int)
Gets a linked Output slot
public CGModuleOutputSlot SourceSlot(int index = 0)
Parameters
indexint
Returns
UnlinkFrom(CGModuleSlot)
Unlink the current slot from the specified other slot.
public override void UnlinkFrom(CGModuleSlot outputSlot)
Parameters
outputSlotCGModuleSlot