Struct ParticleBondGraphicState
Contains the visual information for a single bond for a single round.
Namespace: AS2.Visuals
Assembly: .dll
Syntax
public struct ParticleBondGraphicState
Constructors
| Edit this page View SourceParticleBondGraphicState(Vector2Int, Vector2Int, Vector2Int, Vector2Int, bool)
Declaration
public ParticleBondGraphicState(Vector2Int curBondPos1, Vector2Int curBondPos2, Vector2Int prevBondPos1, Vector2Int prevBondPos2, bool hidden = false)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | curBondPos1 | |
Vector2Int | curBondPos2 | |
Vector2Int | prevBondPos1 | |
Vector2Int | prevBondPos2 | |
bool | hidden |
Fields
| Edit this page View SourcecurBondPos1
First endpoint of the bond after the animation.
Declaration
public Vector2Int curBondPos1
Field Value
Type | Description |
---|---|
Vector2Int |
curBondPos2
Second endpoint of the bond after the animation.
Declaration
public Vector2Int curBondPos2
Field Value
Type | Description |
---|---|
Vector2Int |
hidden
Flag indicating whether the bond should be hidden.
Declaration
public bool hidden
Field Value
Type | Description |
---|---|
bool |
prevBondPos1
First endpoint of the bond before the animation.
Declaration
public Vector2Int prevBondPos1
Field Value
Type | Description |
---|---|
Vector2Int |
prevBondPos2
Second endpoint of the bond before the animation.
Declaration
public Vector2Int prevBondPos2
Field Value
Type | Description |
---|---|
Vector2Int |
Methods
| Edit this page View SourceIsAnimated()
The bond is animated if previous and current positions differ.
Declaration
public bool IsAnimated()
Returns
Type | Description |
---|---|
bool |
|