C# Class GAudio.AGATPulseClient

You can extend this base class and override OnPulse for custom handling of pulse signals fired by MasterPulseModule and SubPulseModule. Inheriting from this class provides automatic subscription to a pulse and the option to subscribe to only specific step indexes.
Inheritance: UnityEngine.MonoBehaviour, IGATPulseClient
Afficher le fichier Open project: gregzo/G-Audio

Méthodes publiques

Méthode Description
OnPulse ( IGATPulseInfo pulseInfo ) : void

Check if _subscribedSteps[ pulseInfo.StepIndex ] when overriding.

Méthodes protégées

Méthode Description
Awake ( ) : void

Call base.Awake() first if you override

CanSubscribeToPulse ( ) : bool

You can override this method to add constraints

IGATPulseClient ( bool newSteps ) : void
NewPulseStepShouldStartChecked ( int stepIndex ) : bool

If a new step has been added to the pulse, should _subscribedSteps[ stepIndex ] start true?

OnDisable ( ) : void

Call base.OnDisable() first if you override

OnEnable ( ) : void

Call base.OnEnable() first if you override

SubscribeToPulseIfNeeded ( ) : void

If CanSubscribeToPulse() is true, will subscribe

UnsubscribeToPulse ( ) : void

Unsubscribes to the pulse.

UpdateSubscribedSteps ( bool newSteps ) : void

Method Details

Awake() protected méthode

Call base.Awake() first if you override
protected Awake ( ) : void
Résultat void

CanSubscribeToPulse() protected méthode

You can override this method to add constraints
protected CanSubscribeToPulse ( ) : bool
Résultat bool

IGATPulseClient() protected méthode

protected IGATPulseClient ( bool newSteps ) : void
newSteps bool
Résultat void

NewPulseStepShouldStartChecked() protected méthode

If a new step has been added to the pulse, should _subscribedSteps[ stepIndex ] start true?
protected NewPulseStepShouldStartChecked ( int stepIndex ) : bool
stepIndex int
Résultat bool

OnDisable() protected méthode

Call base.OnDisable() first if you override
protected OnDisable ( ) : void
Résultat void

OnEnable() protected méthode

Call base.OnEnable() first if you override
protected OnEnable ( ) : void
Résultat void

OnPulse() public abstract méthode

Check if _subscribedSteps[ pulseInfo.StepIndex ] when overriding.
public abstract OnPulse ( IGATPulseInfo pulseInfo ) : void
pulseInfo IGATPulseInfo
Résultat void

SubscribeToPulseIfNeeded() protected méthode

If CanSubscribeToPulse() is true, will subscribe
protected SubscribeToPulseIfNeeded ( ) : void
Résultat void

UnsubscribeToPulse() protected méthode

Unsubscribes to the pulse.
protected UnsubscribeToPulse ( ) : void
Résultat void

UpdateSubscribedSteps() protected méthode

protected UpdateSubscribedSteps ( bool newSteps ) : void
newSteps bool
Résultat void