C# Class Revise.Files.ZMS.ModelFile

Provides the ability to create, open and save ZMS files used for models.
Inheritance: FileLoader
Mostrar archivo Open project: osROSE/UnityRose Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears all vertices, indices, bone tables, materials and strips.

Load ( Stream stream ) : void

Loads the file from the specified stream.

ModelFile ( ) : System.Collections.Generic

Initializes a new instance of the ModelFile class.

Reset ( ) : void

Resets properties to their default values.

Save ( Stream stream ) : void

Saves the file to the specified stream.

Private Methods

Method Description
CheckFlag ( VertexFormat flag ) : bool

Checks the flag against the vertex format.

SetFlag ( VertexFormat flag, bool enabled ) : void

Enables the flag on the vertex format.

Method Details

Clear() public method

Clears all vertices, indices, bone tables, materials and strips.
public Clear ( ) : void
return void

Load() public method

Loads the file from the specified stream.
public Load ( Stream stream ) : void
stream System.IO.Stream The stream to read from.
return void

ModelFile() public method

Initializes a new instance of the ModelFile class.
public ModelFile ( ) : System.Collections.Generic
return System.Collections.Generic

Reset() public method

Resets properties to their default values.
public Reset ( ) : void
return void

Save() public method

Saves the file to the specified stream.
public Save ( Stream stream ) : void
stream System.IO.Stream The stream to save to.
return void