PowerSlide.Action Class Reference

Detailed Description

A raw slide action. E.g. "start cutscene x" or "open door y". These are mapped as event listeners. Note that the SlideEvent can hold extra parameters to pass through to your target.

Public Member Functions

 Action (Slide slide)
 
 Action (Slide slide, JSObject data)
 Loads the action meta from the given JSON data. More...
 
void Load (JSObject data)
 Loads the action meta from the given JSON data. More...
 

Public Attributes

Slide Slide
 The slide this is an action for. More...
 
string ID
 A custom action ID. More...
 
MethodInfo Method
 The method to run. Must accept a SlideEvent. More...
 

Constructor & Destructor Documentation

PowerSlide.Action.Action ( Slide  slide)
inline
PowerSlide.Action.Action ( Slide  slide,
JSObject  data 
)
inline

Loads the action meta from the given JSON data.

Member Function Documentation

void PowerSlide.Action.Load ( JSObject  data)
inline

Loads the action meta from the given JSON data.

Member Data Documentation

string PowerSlide.Action.ID

A custom action ID.

MethodInfo PowerSlide.Action.Method

The method to run. Must accept a SlideEvent.

Slide PowerSlide.Action.Slide

The slide this is an action for.