Class Displacement
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public abstract class Displacement
Fields
affectedByMovementSpeed
Is this displacement affected by movement speed multiplier?
Declaration
public bool affectedByMovementSpeed
Field Value
| Type | Description |
|---|---|
| bool |
isCanceledByCC
Is this displacement canceled by crowd controls?
Note the displacement will not be canceled by CCs applied previously, but by new CCs.
Default value is true.
Declaration
public bool isCanceledByCC
Field Value
| Type | Description |
|---|---|
| bool |
isDodging
Is this displacement dodging?
Dodging displacement will not cancel channels even when they're not allowed to continue while dashing.
Declaration
public bool isDodging
Field Value
| Type | Description |
|---|---|
| bool |
isFriendly
Is this displacement considered a friendly displacement?
This is used to determine if the displacement is Airborne or Dash, and it's fed to info structs of Displacement-related action callbacks.
Default value is false.
Declaration
public bool isFriendly
Field Value
| Type | Description |
|---|---|
| bool |
MinimumDisplacementDuration
Declaration
public const float MinimumDisplacementDuration = 0.0001
Field Value
| Type | Description |
|---|---|
| float |
onCancel
Action that is called when this displacement is canceled.
This can be due to CCs, auto-canceling behaviour of DispByTarget, manual cancelation, and etc.
Declaration
public Action onCancel
Field Value
| Type | Description |
|---|---|
| System.Action |
onFinish
Action that is called when this displacement has successfully finished.
Declaration
public Action onFinish
Field Value
| Type | Description |
|---|---|
| System.Action |
rotateForward
Will the entity rotate towards its velocity during the displacement?
Default value is true.
Declaration
public bool rotateForward
Field Value
| Type | Description |
|---|---|
| bool |
rotateSmoothly
Smoothly rotate if rotateForward is on.
Default value is false.
Declaration
public bool rotateSmoothly
Field Value
| Type | Description |
|---|---|
| bool |
Properties
elapsedTime
Time elapsed starting from the moment this displacement has started.
Declaration
public float elapsedTime { get; }
Property Value
| Type | Description |
|---|---|
| float |
hasStarted
Has this displacement started?
Declaration
public bool hasStarted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
isAlive
Is this displacement on-going?
Declaration
public bool isAlive { get; }
Property Value
| Type | Description |
|---|---|
| bool |