C# 클래스 Recording, InputVCR

파일 보기 프로젝트 열기: EddieCameron/InputVCR 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
frameRate int
frames List

공개 메소드들

메소드 설명
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

메소드 상세

AddInput() 공개 메소드

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

AddProperty() 공개 메소드

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. ///
리턴 void

CheckFrame() 공개 메소드

public CheckFrame ( int frame ) : void
frame int
리턴 void

GetClosestFrame() 공개 메소드

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

GetInput() 공개 메소드

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

GetInputs() 공개 메소드

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

GetProperty() 공개 메소드

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. ///
리턴 string

ParseRecording() 공개 정적인 메소드

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

Recording() 공개 메소드

public Recording ( ) : System.Collections
리턴 System.Collections

Recording() 공개 메소드

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 ///
리턴 System.Collections

Recording() 공개 메소드

public Recording ( int frameRate ) : System.Collections
frameRate int
리턴 System.Collections

ToString() 공개 메소드

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

프로퍼티 상세

frameRate 공개적으로 프로퍼티

public int frameRate
리턴 int

frames 공개적으로 프로퍼티

public List frames
리턴 List