Class CGModuleSlot
- Namespace
- FluffyUnderware.Curvy.Generator
Class defining a module slot
public class CGModuleSlot
- Inheritance
-
CGModuleSlot
- Derived
Fields
mLinkedSlots
protected List<CGModuleSlot> mLinkedSlots
Field Value
Properties
CanvasSpaceDropZone
Mouse-Hotzone, in canvas space
public Rect CanvasSpaceDropZone { get; }
Property Value
- Rect
Count
Gets the number of connected links, i.e. shortcut to this.Links.Count
public int Count { get; }
Property Value
DropZone
Mouse-Hotzone, in module space
public Rect DropZone { get; set; }
Property Value
- Rect
ExternalInput
Gets the module as an IExternalInput
public IExternalInput ExternalInput { get; }
Property Value
Info
Gets the SlotInfo Attribute
public SlotInfo Info { get; }
Property Value
IsLinked
Whether the link is wired or not
public bool IsLinked { get; }
Property Value
IsOnRequest
Does this slot receive/provide data only on demand, as opposed to on refresh?
public virtual bool IsOnRequest { get; }
Property Value
- See Also
LinkedSlots
All slots of linked modules
public List<CGModuleSlot> LinkedSlots { get; }
Property Value
Module
The Module this Slot belongs to
public CGModule Module { get; }
Property Value
Name
public string Name { get; }
Property Value
OnRequestModule
Gets the module as an IOnRequestProcessing
public IOnRequestProcessing OnRequestModule { get; }
Property Value
Origin
Origin of Link-Wire, in Canvas space
public Vector2 Origin { get; set; }
Property Value
- Vector2
PathProvider
Gets the module as an IPathProvider
public IPathProvider PathProvider { get; }
Property Value
Methods
CanLinkTo(CGModuleSlot)
Can a link be established between this slot and the other link?
public virtual bool CanLinkTo(CGModuleSlot other)
Parameters
otherCGModuleSlot
Returns
GetLinkedModules()
Gets a list of all Links' modules
public List<CGModule> GetLinkedModules()
Returns
HasLinkTo(CGModuleSlot)
public bool HasLinkTo(CGModuleSlot other)
Parameters
otherCGModuleSlot
Returns
LinkInputAndOutput(CGModuleSlot, CGModuleSlot)
protected static void LinkInputAndOutput(CGModuleSlot inputSlot, CGModuleSlot outputSlot)
Parameters
inputSlotCGModuleSlotoutputSlotCGModuleSlot
LinkTo(CGModuleSlot)
public virtual void LinkTo(CGModuleSlot other)
Parameters
otherCGModuleSlot
LoadLinkedSlots()
protected virtual void LoadLinkedSlots()
ReInitializeLinkedSlots()
public void ReInitializeLinkedSlots()
SetInfoFromField(FieldInfo)
public void SetInfoFromField(FieldInfo fieldInfo)
Parameters
fieldInfoFieldInfo
ToString()
public override string ToString()
Returns
UnlinkAll()
Unlink this slot from all its linked slots
public virtual void UnlinkAll()
UnlinkFrom(CGModuleSlot)
Unlink the current slot from the specified other slot.
public virtual void UnlinkFrom(CGModuleSlot other)
Parameters
otherCGModuleSlotThe other CGModuleSlot to unlink from.
Operators
implicit operator bool(CGModuleSlot)
public static implicit operator bool(CGModuleSlot a)