Skip to content

Class: ChargingChannel ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public class ChargingChannel

Fields ​

NameDeclarationDescription
castMethodpublic CastMethodData castMethodYou must call UpdateCastMethod after making change to this.

Properties ​

NameDeclarationDescription
castInfopublic CastInfo castInfo { get; }Current cast info of this charging channel.
chargeAmountpublic float chargeAmount { get; }
elapsedTimepublic float elapsedTime { get; }
isActivepublic bool isActive { get; }
normalizedTimepublic float normalizedTime { get; }

Methods ​

Cancel() ​

csharp
public void Cancel()

Dispatch(Entity, AbilityTrigger) ​

csharp
public ChargingChannel Dispatch(Entity entity, AbilityTrigger trigger)

Parameters:

NameTypeDescription
entityEntity
triggerAbilityTrigger

Returns: ChargingChannel

OnCancel(Action<ChargingChannel>) ​

csharp
public ChargingChannel OnCancel(Action<ChargingChannel> callback)

Parameters:

NameTypeDescription
callbackSystem.Action<T><ChargingChannel>

Returns: ChargingChannel

OnCast(Action&lt;ChargingChannel&gt;) ​

csharp
public ChargingChannel OnCast(Action<ChargingChannel> callback)

Parameters:

NameTypeDescription
callbackSystem.Action<T><ChargingChannel>

Returns: ChargingChannel

OnChargeFull(Action&lt;ChargingChannel&gt;) ​

csharp
public ChargingChannel OnChargeFull(Action<ChargingChannel> callback)

Parameters:

NameTypeDescription
callbackSystem.Action<T><ChargingChannel>

Returns: ChargingChannel

OnComplete(Action&lt;ChargingChannel&gt;) ​

csharp
public ChargingChannel OnComplete(Action<ChargingChannel> callback)

Parameters:

NameTypeDescription
callbackSystem.Action<T><ChargingChannel>

Returns: ChargingChannel

SetInitialInfo(CastInfo) ​

csharp
public ChargingChannel SetInitialInfo(CastInfo info)

Parameters:

NameTypeDescription
infoCastInfo

Returns: ChargingChannel

UpdateCastMethod() ​

Send updated cast method to client to reflect the changes.

csharp
public ChargingChannel UpdateCastMethod()

Returns: ChargingChannel

Maintained by the Shape of Dreams Modding Community