C# Class AnimatorClient.AnimatorClient

TODO: Update summary.
Show file Open project: uiacm/tower_creator Class Usage Examples

Public Methods

Method Description
AnimatorClient ( ) : System

DeleteAnimation ( int index ) : void
GetAnimationTitles ( ) : List
GetAnimations ( List currentAnimations ) : List

Downloads the list of animations from the server. It will not send any animations that have the an MD5 hash given.

GetStatus ( ) : string
PlayAnimation ( int index, System.TimeSpan delta, string audioFileName ) : void

Send a signal to the server to start playing the animation at the specified index and start time. Start playing the audio at the specified time.

SetSerialState ( bool value ) : void

Sets the serial state, connected or disconnected. True is connected, false is disconnected.

StopAnimation ( bool sendBlank ) : void

UploadAnimation ( Animation animation ) : void

Private Methods

Method Description
CreateInputStream ( string fileName ) : NAudio.Wave.WaveChannel32

Creates a wave stream from the given file.

Method Details

AnimatorClient() public method

public AnimatorClient ( ) : System
return System

DeleteAnimation() public method

public DeleteAnimation ( int index ) : void
index int
return void

GetAnimationTitles() public method

public GetAnimationTitles ( ) : List
return List

GetAnimations() public method

Downloads the list of animations from the server. It will not send any animations that have the an MD5 hash given.
public GetAnimations ( List currentAnimations ) : List
currentAnimations List A list of animations that have already been downloaded
return List

GetStatus() public method

public GetStatus ( ) : string
return string

PlayAnimation() public method

Send a signal to the server to start playing the animation at the specified index and start time. Start playing the audio at the specified time.
public PlayAnimation ( int index, System.TimeSpan delta, string audioFileName ) : void
index int The index of the animation
delta System.TimeSpan The start time into the animation
audioFileName string
return void

SetSerialState() public method

Sets the serial state, connected or disconnected. True is connected, false is disconnected.
public SetSerialState ( bool value ) : void
value bool
return void

StopAnimation() public method

public StopAnimation ( bool sendBlank ) : void
sendBlank bool
return void

UploadAnimation() public method

public UploadAnimation ( Animation animation ) : void
animation AnimationModels.Animation
return void