C# Класс FlatRedBall.Graphics.Model.Animation.Content.XFileTokenizer

Tokenizes a .X file and provides methods to parse those tokens.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddChar void
ResetString void
Throw void
TokensFromString List

Открытые методы

Метод Описание
NextFloat ( ) : float

Parses a float from a .X file

NextInt ( ) : int

Parses an integer from a .X file

NextMatrix ( ) : Matrix

Reads the next Matrix in the stream.

NextString ( ) : string

Parses a string from a .X file

NextToken ( ) : string

Reads a generic token from a .X file

NextVector2 ( ) : Vector2

Reads the next Vector2 in the stream.

NextVector3 ( ) : Vector3

Reads the next Vector3 in the stream.

NextVector4 ( ) : Vector4

Reads the next Vector4 in the stream.

ReadName ( ) : string

Reads a nodes name and its opening curly bracket.

Reset ( ) : void

Resets the tokenizer to the beginning of the stream.

SkipName ( ) : XFileTokenizer

Skips a nodes name and its opening curly bracket.

SkipNode ( ) : void

Skips a node in a .X file and all child nodes; should be called after the opening brace, "{", has been read.

SkipToken ( ) : XFileTokenizer

Skips a token in the stream.

SkipTokens ( int numToSkip ) : void

Skips tokens in the stream.

XFileTokenizer ( string fileName ) : System

Creates a new instance of XFileTokenizer.

Приватные методы

Метод Описание
AddChar ( int c ) : void
ResetString ( ) : void
Throw ( Type type, Exception innerException, String inputString ) : void
TokensFromString ( string ms ) : List

Описание методов

NextFloat() публичный Метод

Parses a float from a .X file
public NextFloat ( ) : float
Результат float

NextInt() публичный Метод

Parses an integer from a .X file
public NextInt ( ) : int
Результат int

NextMatrix() публичный Метод

Reads the next Matrix in the stream.
public NextMatrix ( ) : Matrix
Результат Matrix

NextString() публичный Метод

Parses a string from a .X file
public NextString ( ) : string
Результат string

NextToken() публичный Метод

Reads a generic token from a .X file
public NextToken ( ) : string
Результат string

NextVector2() публичный Метод

Reads the next Vector2 in the stream.
public NextVector2 ( ) : Vector2
Результат Vector2

NextVector3() публичный Метод

Reads the next Vector3 in the stream.
public NextVector3 ( ) : Vector3
Результат Vector3

NextVector4() публичный Метод

Reads the next Vector4 in the stream.
public NextVector4 ( ) : Vector4
Результат Vector4

ReadName() публичный Метод

Reads a nodes name and its opening curly bracket.
public ReadName ( ) : string
Результат string

Reset() публичный Метод

Resets the tokenizer to the beginning of the stream.
public Reset ( ) : void
Результат void

SkipName() публичный Метод

Skips a nodes name and its opening curly bracket.
public SkipName ( ) : XFileTokenizer
Результат XFileTokenizer

SkipNode() публичный Метод

Skips a node in a .X file and all child nodes; should be called after the opening brace, "{", has been read.
public SkipNode ( ) : void
Результат void

SkipToken() публичный Метод

Skips a token in the stream.
public SkipToken ( ) : XFileTokenizer
Результат XFileTokenizer

SkipTokens() публичный Метод

Skips tokens in the stream.
public SkipTokens ( int numToSkip ) : void
numToSkip int
Результат void

XFileTokenizer() публичный Метод

Creates a new instance of XFileTokenizer.
public XFileTokenizer ( string fileName ) : System
fileName string The .X file to tokenize.
Результат System