C# Class FrameTrapped.Input.Models.InputItemModel

Mostra file Open project: jhogoforbroke/Frame-Trapped Class Usage Examples

Public Properties

Property Type Description
Buttons Input[]
Directions Input[]
PlaySound bool

Public Methods

Method Description
Deserialize ( string value ) : InputItemModel

Static definition for deserializing a string into a set of inputs.

InputItemModel ( ) : System

Initializes a new instance of the InputItemModel class.

InputItemModel ( Input inputArray ) : System

Initializes a new instance of the InputItemModel class.

InputItemModel ( InputCommandModel inputCommand ) : System

Initializes a new instance of the InputItemModel class.

ParseInput ( String str ) : Input

Parses inputs from string to an input enum.

Serialize ( ) : string

The serialize function for turning the inputs into a string.

Method Details

Deserialize() public static method

Static definition for deserializing a string into a set of inputs.
public static Deserialize ( string value ) : InputItemModel
value string The value to deserialize.
return InputItemModel

InputItemModel() public method

Initializes a new instance of the InputItemModel class.
public InputItemModel ( ) : System
return System

InputItemModel() public method

Initializes a new instance of the InputItemModel class.
public InputItemModel ( Input inputArray ) : System
inputArray Input
return System

InputItemModel() public method

Initializes a new instance of the InputItemModel class.
public InputItemModel ( InputCommandModel inputCommand ) : System
inputCommand InputCommandModel The input command model to use for this input.
return System

ParseInput() public static method

Parses inputs from string to an input enum.
public static ParseInput ( String str ) : Input
str String The to convert.
return Input

Serialize() public method

The serialize function for turning the inputs into a string.
public Serialize ( ) : string
return string

Property Details

Buttons public_oe static_oe property

Array that defines button inputs.
public static Input[] Buttons
return Input[]

Directions public_oe static_oe property

Array that defines directional inputs.
public static Input[] Directions
return Input[]

PlaySound public_oe property

If set to true, will play a sound on the time line item being played in the time line.
public bool PlaySound
return bool