C# Класс Recording, InputVCR

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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