Struct BondMovementInfo
Serializable representation of a single bond movement.
Describes the two locations of a bond before and after
a movement round. Also contains some graphical info.
Assembly: .dll
Syntax
[Serializable]
public struct BondMovementInfo
Constructors
BondMovementInfo(Vector2Int, Vector2Int, Vector2Int, Vector2Int, bool)
Declaration
public BondMovementInfo(Vector2Int start1, Vector2Int end1, Vector2Int start2, Vector2Int end2, bool hidden = false)
Parameters
Type |
Name |
Description |
Vector2Int |
start1 |
|
Vector2Int |
end1 |
|
Vector2Int |
start2 |
|
Vector2Int |
end2 |
|
bool |
hidden |
|
Fields
Empty
A movement info in which all positions are (0,0)
.
Declaration
public static BondMovementInfo Empty
Field Value
end1
The bond's end location before the movement.
Declaration
Field Value
Type |
Description |
Vector2Int |
|
end2
The bond's end location after the movement.
Declaration
Field Value
Type |
Description |
Vector2Int |
|
hidden
Whether the bond should be hidden.
Declaration
Field Value
start1
The bond's start location before the movement.
Declaration
Field Value
Type |
Description |
Vector2Int |
|
start2
The bond's start location after the movement.
Declaration
Field Value
Type |
Description |
Vector2Int |
|
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
Operators
operator ==(BondMovementInfo, BondMovementInfo)
Declaration
public static bool operator ==(BondMovementInfo i1, BondMovementInfo i2)
Parameters
Returns
operator !=(BondMovementInfo, BondMovementInfo)
Declaration
public static bool operator !=(BondMovementInfo i1, BondMovementInfo i2)
Parameters
Returns