C# Class FlatRedBall.Graphics.Model.Animation.Content.XFileTokenizer

Tokenizes a .X file and provides methods to parse those tokens.
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Private Properties

Свойство Type Description
AddChar void
ResetString void
Throw void
TokensFromString List

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
AddChar ( int c ) : void
ResetString ( ) : void
Throw ( Type type, Exception innerException, String inputString ) : void
TokensFromString ( string ms ) : List

Method Details

NextFloat() public méthode

Parses a float from a .X file
public NextFloat ( ) : float
Résultat float

NextInt() public méthode

Parses an integer from a .X file
public NextInt ( ) : int
Résultat int

NextMatrix() public méthode

Reads the next Matrix in the stream.
public NextMatrix ( ) : Matrix
Résultat Matrix

NextString() public méthode

Parses a string from a .X file
public NextString ( ) : string
Résultat string

NextToken() public méthode

Reads a generic token from a .X file
public NextToken ( ) : string
Résultat string

NextVector2() public méthode

Reads the next Vector2 in the stream.
public NextVector2 ( ) : Vector2
Résultat Vector2

NextVector3() public méthode

Reads the next Vector3 in the stream.
public NextVector3 ( ) : Vector3
Résultat Vector3

NextVector4() public méthode

Reads the next Vector4 in the stream.
public NextVector4 ( ) : Vector4
Résultat Vector4

ReadName() public méthode

Reads a nodes name and its opening curly bracket.
public ReadName ( ) : string
Résultat string

Reset() public méthode

Resets the tokenizer to the beginning of the stream.
public Reset ( ) : void
Résultat void

SkipName() public méthode

Skips a nodes name and its opening curly bracket.
public SkipName ( ) : XFileTokenizer
Résultat XFileTokenizer

SkipNode() public méthode

Skips a node in a .X file and all child nodes; should be called after the opening brace, "{", has been read.
public SkipNode ( ) : void
Résultat void

SkipToken() public méthode

Skips a token in the stream.
public SkipToken ( ) : XFileTokenizer
Résultat XFileTokenizer

SkipTokens() public méthode

Skips tokens in the stream.
public SkipTokens ( int numToSkip ) : void
numToSkip int
Résultat void

XFileTokenizer() public méthode

Creates a new instance of XFileTokenizer.
public XFileTokenizer ( string fileName ) : System
fileName string The .X file to tokenize.
Résultat System