Class CGModuleLink
- Namespace
- FluffyUnderware.Curvy.Generator
Class defining a linkage between two modules' slots
[Serializable]
public class CGModuleLink
- Inheritance
-
CGModuleLink
Constructors
CGModuleLink(CGModuleSlot, CGModuleSlot)
public CGModuleLink(CGModuleSlot source, CGModuleSlot target)
Parameters
sourceCGModuleSlottargetCGModuleSlot
CGModuleLink(int, string, int, string)
public CGModuleLink(int sourceID, string sourceSlotName, int targetID, string targetSlotName)
Parameters
Properties
ModuleID
public int ModuleID { get; }
Property Value
SlotName
public string SlotName { get; }
Property Value
TargetModuleID
public int TargetModuleID { get; }
Property Value
TargetSlotName
public string TargetSlotName { get; }
Property Value
Methods
AreSlotsCompatible(InputSlotInfo, bool, OutputSlotInfo, bool)
Can input and output slots be linked together?
public static bool AreSlotsCompatible(InputSlotInfo inputSlotInfo, bool isInputDataOnRequest, OutputSlotInfo outputSlotInfo, bool isOutputDataOnRequest)
Parameters
inputSlotInfoInputSlotInfoisInputDataOnRequestbooloutputSlotInfoOutputSlotInfoisOutputDataOnRequestbool
Returns
- See Also
IsBetween(CGModuleSlot, CGModuleSlot)
public bool IsBetween(CGModuleSlot one, CGModuleSlot another)
Parameters
oneCGModuleSlotanotherCGModuleSlot
Returns
IsFrom(CGModuleSlot)
public bool IsFrom(CGModuleSlot s)
Parameters
Returns
IsSame(CGModuleLink)
public bool IsSame(CGModuleLink o)
Parameters
Returns
IsSame(CGModuleSlot, CGModuleSlot)
public bool IsSame(CGModuleSlot source, CGModuleSlot target)
Parameters
sourceCGModuleSlottargetCGModuleSlot
Returns
IsTo(CGModuleSlot)
public bool IsTo(CGModuleSlot s)
Parameters
Returns
IsUsing(CGModule)
public bool IsUsing(CGModule module)
Parameters
moduleCGModule
Returns
SetModuleIDIINTERNAL(int, int)
public void SetModuleIDIINTERNAL(int moduleID, int targetModuleID)
Parameters
ToString()
public override string ToString()
Returns
Operators
implicit operator bool(CGModuleLink)
public static implicit operator bool(CGModuleLink a)