C# Class SSTUTools.SSTUAnimateControlled

Generic animation module intended to be controlled by other PartModules.

Does not include any GUI or direct-user-interactivity; all state changes must be initiated from external sources

Inheritance: PartModule
Show file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Methods

Method Description
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Update ( ) : void
addCallback ( Action cb ) : void
getAnimationState ( ) : AnimState
initialized ( ) : bool
locateAnimationController ( Part part, int id, Action callback ) : SSTUAnimateControlled
reInitialize ( ) : void
removeCallback ( Action cb ) : void
setToState ( AnimState newState ) : void

Private Methods

Method Description
initialize ( ) : void
onAnimationStateChange ( AnimState newState ) : void

Method Details

OnLoad() public method

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
return void

OnSave() public method

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
return void

OnStart() public method

public OnStart ( StartState state ) : void
state StartState
return void

Update() public method

public Update ( ) : void
return void

addCallback() public method

public addCallback ( Action cb ) : void
cb Action
return void

getAnimationState() public method

public getAnimationState ( ) : AnimState
return AnimState

initialized() public method

public initialized ( ) : bool
return bool

locateAnimationController() public static method

public static locateAnimationController ( Part part, int id, Action callback ) : SSTUAnimateControlled
part Part
id int
callback Action
return SSTUAnimateControlled

reInitialize() public method

public reInitialize ( ) : void
return void

removeCallback() public method

public removeCallback ( Action cb ) : void
cb Action
return void

setToState() public method

public setToState ( AnimState newState ) : void
newState AnimState
return void