![]() |
Dungeon Architect
17.0.0
|
A pin is used to connect a link to a node More...
Public Member Functions | |
| delegate void | OnPinLinksDestroyed (GraphPin pin) |
| void | OnEnable () |
| GraphLink[] | GetConntectedLinks () |
| Gets all the links connected to this pin More... | |
| virtual bool | ContainsPoint (Vector2 worldPoint) |
| Checks if a point is inside the pin More... | |
| Rect | GetBounds () |
| Gets the bounds of the pin, relative to the node position More... | |
| void | NotifyPinLinksDestroyed () |
Properties | |
| GraphPinMouseState | ClickState [get, set] |
| The state of the mouse input on this pin More... | |
| GraphPinType | PinType [get, set] |
| The type of this pin More... | |
| GraphNode | Node [get, set] |
| The owning graph node More... | |
| Vector2 | Position [get, set] |
| The position of the graph pin, relative to the owning node's position More... | |
| Vector2 | WorldPosition [get] |
| The world position of the pin More... | |
| Rect | BoundsOffset [get, set] |
| The bounds of the pin, relative to the node's position More... | |
| Vector2 | Tangent [get, set] |
| The tangent of the pin. Links connected to this pin would come in or out from this direction More... | |
| float | TangentStrength [get, set] |
| The spring strength of the link connected to this pin More... | |
| bool | RequestLinkDeletionInitiated [get, set] |
Events | |
| OnPinLinksDestroyed | PinLinksDestroyed |
| Notifies whenever the pin is destroyed More... | |
A pin is used to connect a link to a node
Definition at line 32 of file GraphPin.cs.
|
virtual |
Checks if a point is inside the pin
| worldPoint | The point to test in world coordinates |
Reimplemented in DungeonArchitect.Grammar.GrammarNodePin, DungeonArchitect.Flow.Domains.Layout.Tooling.Graph2D.FlowLayoutToolGraph2DNodePin, and DungeonArchitect.Flow.Exec.FlowExecGraphNodePin.
Definition at line 216 of file GraphPin.cs.
| Rect DungeonArchitect.Graphs.GraphPin.GetBounds | ( | ) |
Gets the bounds of the pin, relative to the node position
Definition at line 236 of file GraphPin.cs.
| GraphLink [] DungeonArchitect.Graphs.GraphPin.GetConntectedLinks | ( | ) |
Gets all the links connected to this pin
Definition at line 191 of file GraphPin.cs.
|
getset |
The bounds of the pin, relative to the node's position
Definition at line 136 of file GraphPin.cs.
|
getset |
The state of the mouse input on this pin
Definition at line 38 of file GraphPin.cs.
|
getset |
The owning graph node
Definition at line 84 of file GraphPin.cs.
|
getset |
The type of this pin
Definition at line 56 of file GraphPin.cs.
|
getset |
The position of the graph pin, relative to the owning node's position
Definition at line 101 of file GraphPin.cs.
|
getset |
The tangent of the pin. Links connected to this pin would come in or out from this direction
Definition at line 153 of file GraphPin.cs.
|
getset |
The spring strength of the link connected to this pin
Definition at line 170 of file GraphPin.cs.
|
get |
The world position of the pin
Definition at line 116 of file GraphPin.cs.
| OnPinLinksDestroyed DungeonArchitect.Graphs.GraphPin.PinLinksDestroyed |
Notifies whenever the pin is destroyed
Definition at line 73 of file GraphPin.cs.