C# 클래스 FlatRedBall.Graphics.Model.Animation.Content.XFileTokenizer

Tokenizes a .X file and provides methods to parse those tokens.
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

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