Struct ParticleJointMovementState
Contains the joint movement information for a single particle in a single round.
Assembly: .dll
Syntax
public struct ParticleJointMovementState
Constructors
ParticleJointMovementState(bool, Vector2Int)
Declaration
public ParticleJointMovementState(bool isJointMovement, Vector2Int jointExpansionOffset)
Parameters
Type |
Name |
Description |
bool |
isJointMovement |
|
Vector2Int |
jointExpansionOffset |
|
Fields
None
Constant neutral version of the struct, representing
no joint movement.
Declaration
public static ParticleJointMovementState None
Field Value
isJointMovement
Whether or not this is actually a joint movement.
if false
, the jointMovementOffset
is invalid unless it is (0, 0)
.
Declaration
public bool isJointMovement
Field Value
jointMovementOffset
The global offset by which the particle's position
has shifted. This is relative to the particle's own
non-moving part if it performs a movement itself.
Declaration
public Vector2Int jointMovementOffset
Field Value
Type |
Description |
Vector2Int |
|
Methods
Description()
Declaration
public string Description()
Returns
Equals(ParticleJointMovementState)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ParticleJointMovementState other)
Parameters
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
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 ==(ParticleJointMovementState, ParticleJointMovementState)
Declaration
public static bool operator ==(ParticleJointMovementState state1, ParticleJointMovementState state2)
Parameters
Returns
operator !=(ParticleJointMovementState, ParticleJointMovementState)
Declaration
public static bool operator !=(ParticleJointMovementState lhs, ParticleJointMovementState rhs)
Parameters
Returns