Struct AreaConnectionPointPair
Assembly: GoRogue.dll
Syntax
[DataContract]
public struct AreaConnectionPointPair : IEquatable<AreaConnectionPointPair>, IMatchable<AreaConnectionPointPair>
Constructors
View Source
AreaConnectionPointPair(Point, Point)
Declaration
public AreaConnectionPointPair(Point area1Position, Point area2Position)
Parameters
Type |
Name |
Description |
Point |
area1Position |
|
Point |
area2Position |
|
Fields
View Source
Area1Position
The type of component expected.
Declaration
[DataMember]
public readonly Point Area1Position
Field Value
View Source
Area2Position
The tag expected to be associated with a component of the specified type.
Declaration
[DataMember]
public readonly Point Area2Position
Field Value
Methods
View Source
Deconstruct(out Point, out Point)
Supports C# Deconstruction syntax.
Declaration
public void Deconstruct(out Point area1Position, out Point area2Position)
Parameters
Type |
Name |
Description |
Point |
area1Position |
|
Point |
area2Position |
|
View Source
Equals(AreaConnectionPointPair)
True if the given pair contains the same points; false otherwise.
Declaration
public bool Equals(AreaConnectionPointPair other)
Parameters
Returns
View Source
Equals(object?)
True if the given object is a AreaConnectionPointPair and has the same points; false otherwise.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
View Source
FromTuple((Point area1Position, Point area2Position))
Converts the tuple to an equivalent AreaConnectionPointPair.
Declaration
public static AreaConnectionPointPair FromTuple((Point area1Position, Point area2Position) tuple)
Parameters
Returns
View Source
GetHashCode()
Returns a hash code based on all of the pair's field's.
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
Matches(AreaConnectionPointPair)
True if the given pair contains the same points; false otherwise.
Declaration
public bool Matches(AreaConnectionPointPair other)
Parameters
Returns
View Source
ToString()
Returns a string representing the two points.
Declaration
public override string ToString()
Returns
Overrides
View Source
ToTuple()
Converts the pair to an equivalent tuple.
Declaration
public (Point area1Position, Point area2Position) ToTuple()
Returns
Operators
View Source
operator ==(AreaConnectionPointPair, AreaConnectionPointPair)
True if the given pairs have the same points; false otherwise.
Declaration
public static bool operator ==(AreaConnectionPointPair left, AreaConnectionPointPair right)
Parameters
Returns
View Source
implicit operator (Point area1Position, Point area2Position)(AreaConnectionPointPair)
Implicitly converts an AreaConnectionPointPair to an equivalent tuple.
Declaration
public static implicit operator (Point area1Position, Point area2Position)(AreaConnectionPointPair pair)
Parameters
Returns
View Source
implicit operator AreaConnectionPointPair((Point area1Position, Point area2Position))
Implicitly converts a tuple to its equivalent AreaConnectionPointPair.
Declaration
public static implicit operator AreaConnectionPointPair((Point area1Position, Point area2Position) tuple)
Parameters
Returns
View Source
operator !=(AreaConnectionPointPair, AreaConnectionPointPair)
True if the given pairs have different points for the first and second point, respectively; false otherwise.
Declaration
public static bool operator !=(AreaConnectionPointPair left, AreaConnectionPointPair right)
Parameters
Returns
Implements
Extension Methods