Table of Contents

Class CGModuleLink

Class defining a linkage between two modules' slots

[Serializable]
public class CGModuleLink
Inheritance
CGModuleLink

Constructors

public CGModuleLink(CGModuleSlot source, CGModuleSlot target)

Parameters

source CGModuleSlot
target CGModuleSlot
public CGModuleLink(int sourceID, string sourceSlotName, int targetID, string targetSlotName)

Parameters

sourceID int
sourceSlotName string
targetID int
targetSlotName string

Properties

public int ModuleID { get; }

Property Value

int
public string SlotName { get; }

Property Value

string
public int TargetModuleID { get; }

Property Value

int
public string TargetSlotName { get; }

Property Value

string

Methods

Can input and output slots be linked together?

public static bool AreSlotsCompatible(InputSlotInfo inputSlotInfo, bool isInputDataOnRequest, OutputSlotInfo outputSlotInfo, bool isOutputDataOnRequest)

Parameters

inputSlotInfo InputSlotInfo
isInputDataOnRequest bool
outputSlotInfo OutputSlotInfo
isOutputDataOnRequest bool

Returns

bool
See Also
public bool IsBetween(CGModuleSlot one, CGModuleSlot another)

Parameters

one CGModuleSlot
another CGModuleSlot

Returns

bool
public bool IsFrom(CGModuleSlot s)

Parameters

s CGModuleSlot

Returns

bool
public bool IsSame(CGModuleLink o)

Parameters

o CGModuleLink

Returns

bool
public bool IsSame(CGModuleSlot source, CGModuleSlot target)

Parameters

source CGModuleSlot
target CGModuleSlot

Returns

bool
public bool IsTo(CGModuleSlot s)

Parameters

s CGModuleSlot

Returns

bool
public bool IsUsing(CGModule module)

Parameters

module CGModule

Returns

bool
public void SetModuleIDIINTERNAL(int moduleID, int targetModuleID)

Parameters

moduleID int
targetModuleID int
public override string ToString()

Returns

string

Operators

public static implicit operator bool(CGModuleLink a)

Parameters

a CGModuleLink

Returns

bool