Sequine - Scripting API
Calcatz.Sequine.PlayOneShotSoundCommand Class Reference

Base class of commands that play a one shot audio clip. More...

Inheritance diagram for Calcatz.Sequine.PlayOneShotSoundCommand:
Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 > Calcatz.Sequine.PlayAudioClipCommand Calcatz.Sequine.PlayMEFromLibraryCommand Calcatz.Sequine.PlaySFXFromLibraryCommand

Public Member Functions

override void Execute (CommandExecutionFlow _flow)
 The process to execute upon visiting the main in-point (white in-point). More...
 
override void Editor_InitInPoints ()
 Called when a Command Node is initialized, specifically the in-points. Use this method to ensure inputIds as well. More...
 
override void Editor_InitOutPoints ()
 Called when a Command Node is initialized, specifically the out-points. Use this method to ensure nextIds as well. More...
 
override void Editor_OnDrawTitle (out string _tooltip)
 Called when a Command Node's title is drawn. Use this to change the tooltip of the command. Also use this to decide whether the Title should draw in-point and/or out-point. More...
 
override void Editor_OnDrawContents (Vector2 _absPosition)
 Called when a Command Node is drawn. More...
 

Public Attributes

float volumeMultiplier = 1f
 
bool playAtPosition
 
Vector3 position
 

Protected Member Functions

override void HandleInterruption ()
 Called when the current flow is force killed, while the currently executed command is exactly this command, and has not exited. Note that "exited" here means that Exit() method has been called. More...
 
void OnComplete ()
 
virtual void OnDrawClipInputField ()
 

Protected Attributes

SubFlowInfo subFlowOnComplete
 

Static Protected Attributes

const int IN_PORT_CLIPINPUT = 0
 
const int IN_PORT_VOLUME_MULTIPLIER = 1
 
const int IN_PORT_POSITION = 2
 
const int OUT_PORT_ONCOMPLETE = 1
 

Properties

override float nodeWidth [get]
 
virtual System.Type clipInputType [get]
 
virtual string clipInputLabel [get]
 
virtual string tooltip [get]
 

Detailed Description

Base class of commands that play a one shot audio clip.

Member Function Documentation

◆ Editor_InitInPoints()

override void Calcatz.Sequine.PlayOneShotSoundCommand.Editor_InitInPoints ( )
virtual

Called when a Command Node is initialized, specifically the in-points. Use this method to ensure inputIds as well.

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ Editor_InitOutPoints()

override void Calcatz.Sequine.PlayOneShotSoundCommand.Editor_InitOutPoints ( )
virtual

Called when a Command Node is initialized, specifically the out-points. Use this method to ensure nextIds as well.

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ Editor_OnDrawContents()

override void Calcatz.Sequine.PlayOneShotSoundCommand.Editor_OnDrawContents ( Vector2  _absPosition)
virtual

Called when a Command Node is drawn.

Parameters
_absPosition

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ Editor_OnDrawTitle()

override void Calcatz.Sequine.PlayOneShotSoundCommand.Editor_OnDrawTitle ( out string  _tooltip)
virtual

Called when a Command Node's title is drawn. Use this to change the tooltip of the command. Also use this to decide whether the Title should draw in-point and/or out-point.

Parameters
_tooltip

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ Execute()

override void Calcatz.Sequine.PlayOneShotSoundCommand.Execute ( CommandExecutionFlow  _flow)
virtual

The process to execute upon visiting the main in-point (white in-point).

Parameters
_flow

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

Reimplemented in Calcatz.Sequine.PlaySFXFromLibraryCommand.

◆ HandleInterruption()

override void Calcatz.Sequine.PlayOneShotSoundCommand.HandleInterruption ( )
protectedvirtual

Called when the current flow is force killed, while the currently executed command is exactly this command, and has not exited. Note that "exited" here means that Exit() method has been called.

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ OnComplete()

void Calcatz.Sequine.PlayOneShotSoundCommand.OnComplete ( )
protected

◆ OnDrawClipInputField()

virtual void Calcatz.Sequine.PlayOneShotSoundCommand.OnDrawClipInputField ( )
protectedvirtual

Member Data Documentation

◆ IN_PORT_CLIPINPUT

const int Calcatz.Sequine.PlayOneShotSoundCommand.IN_PORT_CLIPINPUT = 0
staticprotected

◆ IN_PORT_POSITION

const int Calcatz.Sequine.PlayOneShotSoundCommand.IN_PORT_POSITION = 2
staticprotected

◆ IN_PORT_VOLUME_MULTIPLIER

const int Calcatz.Sequine.PlayOneShotSoundCommand.IN_PORT_VOLUME_MULTIPLIER = 1
staticprotected

◆ OUT_PORT_ONCOMPLETE

const int Calcatz.Sequine.PlayOneShotSoundCommand.OUT_PORT_ONCOMPLETE = 1
staticprotected

◆ playAtPosition

bool Calcatz.Sequine.PlayOneShotSoundCommand.playAtPosition

◆ position

Vector3 Calcatz.Sequine.PlayOneShotSoundCommand.position

◆ subFlowOnComplete

SubFlowInfo Calcatz.Sequine.PlayOneShotSoundCommand.subFlowOnComplete
protected

◆ volumeMultiplier

float Calcatz.Sequine.PlayOneShotSoundCommand.volumeMultiplier = 1f

Property Documentation

◆ clipInputLabel

virtual string Calcatz.Sequine.PlayOneShotSoundCommand.clipInputLabel
getprotected

◆ clipInputType

virtual System.Type Calcatz.Sequine.PlayOneShotSoundCommand.clipInputType
getprotected

◆ nodeWidth

override float Calcatz.Sequine.PlayOneShotSoundCommand.nodeWidth
get

◆ tooltip

virtual string Calcatz.Sequine.PlayOneShotSoundCommand.tooltip
getprotected