C# Class Recording, InputVCR

显示文件 Open project: EddieCameron/InputVCR Class Usage Examples

Public Properties

Property Type Description
frameRate int
frames List

Public Methods

Method Description
AddInput ( int atFrame, InputInfo, inputInfo ) : void

Adds the supplied input info to given frame

AddProperty ( int atFrame, string propertyName, string propertyValue ) : void

Adds a custom property to a given frame

CheckFrame ( int frame ) : void
GetClosestFrame ( float toTime ) : int

Gets the closest frame index to a provided time

GetInput ( int atFrame, string inputName ) : InputInfo,

Gets the given input at given frame.

GetInputs ( int atFrame ) : InputInfo[],

Gets all inputs in a given frame.

GetProperty ( int atFrame, string propertyName ) : string

Gets the given custom property if recorded in given frame

ParseRecording ( string jsonRecording ) : Recording,

Parses a Recording from saved JSON string

Recording ( ) : System.Collections
Recording ( Recording, oldRecording ) : System.Collections

Copies the data in oldRecoding to a new instance of the Recording class.

Recording ( int frameRate ) : System.Collections
ToString ( ) : string

Returns a System.String that represents the current Recording using JSON

Method Details

AddInput() public method

Adds the supplied input info to given frame
public AddInput ( int atFrame, InputInfo, inputInfo ) : void
atFrame int /// At frame. ///
inputInfo InputInfo, /// Input info. ///
return void

AddProperty() public method

Adds a custom property to a given frame
public AddProperty ( int atFrame, string propertyName, string propertyValue ) : void
atFrame int /// At frame. ///
propertyName string /// Property name. ///
propertyValue string /// Property value as string. ///
return void

CheckFrame() public method

public CheckFrame ( int frame ) : void
frame int
return void

GetClosestFrame() public method

Gets the closest frame index to a provided time
public GetClosestFrame ( float toTime ) : int
toTime float /// To time. ///
return int

GetInput() public method

Gets the given input at given frame.
public GetInput ( int atFrame, string inputName ) : InputInfo,
atFrame int /// At frame. ///
inputName string /// Input name. ///
return InputInfo,

GetInputs() public method

Gets all inputs in a given frame.
public GetInputs ( int atFrame ) : InputInfo[],
atFrame int /// At frame. ///
return InputInfo[],

GetProperty() public method

Gets the given custom property if recorded in given frame
public GetProperty ( int atFrame, string propertyName ) : string
atFrame int /// At frame. ///
propertyName string /// Property name. ///
return string

ParseRecording() public static method

Parses a Recording from saved JSON string
public static ParseRecording ( string jsonRecording ) : Recording,
jsonRecording string /// JSON recording ///
return Recording,

Recording() public method

public Recording ( ) : System.Collections
return System.Collections

Recording() public method

Copies the data in oldRecoding to a new instance of the Recording class.
public Recording ( Recording, oldRecording ) : System.Collections
oldRecording Recording, /// Recording to be copied ///
return System.Collections

Recording() public method

public Recording ( int frameRate ) : System.Collections
frameRate int
return System.Collections

ToString() public method

Returns a System.String that represents the current Recording using JSON
public ToString ( ) : string
return string

Property Details

frameRate public_oe property

public int frameRate
return int

frames public_oe property

public List frames
return List