Dungeon Architect  17.0.0
DungeonArchitect.Grammar.GrammarNodePin Class Reference
Inheritance diagram for DungeonArchitect.Grammar.GrammarNodePin:
DungeonArchitect.Graphs.GraphPin

Public Member Functions

override bool ContainsPoint (Vector2 worldPoint)
 Checks if a point is inside the pin More...
 
- Public Member Functions inherited from DungeonArchitect.Graphs.GraphPin
delegate void OnPinLinksDestroyed (GraphPin pin)
 
void OnEnable ()
 
GraphLink[] GetConntectedLinks ()
 Gets all the links connected to this pin More...
 
Rect GetBounds ()
 Gets the bounds of the pin, relative to the node position More...
 
void NotifyPinLinksDestroyed ()
 

Public Attributes

Vector2 Padding = new Vector2(10, 10)
 

Additional Inherited Members

- Properties inherited from DungeonArchitect.Graphs.GraphPin
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 inherited from DungeonArchitect.Graphs.GraphPin
OnPinLinksDestroyed PinLinksDestroyed
 Notifies whenever the pin is destroyed More...
 

Detailed Description

Definition at line 7 of file GrammarNodePin.cs.

Member Function Documentation

◆ ContainsPoint()

override bool DungeonArchitect.Grammar.GrammarNodePin.ContainsPoint ( Vector2  worldPoint)
virtual

Checks if a point is inside the pin

Parameters
worldPointThe point to test in world coordinates
Returns
true, if inside the bounds of this pin, false otherwise

Reimplemented from DungeonArchitect.Graphs.GraphPin.

Definition at line 11 of file GrammarNodePin.cs.


The documentation for this class was generated from the following file: