C# Class Warcraft.WMO.WMO

Container class for a World Model Object (WMO). This class hosts the root file with metadata definitions, as well as the group files which contain the actual 3D model data.
Inheritance: IDisposable
Afficher le fichier Open project: Nihlus/libwarcraft

Méthodes publiques

Свойство Type Description
Groups List
RootInformation Warcraft.WMO.RootFile.ModelRoot

Méthodes publiques

Méthode Description
AddModelGroup ( ModelGroup modelGroup ) : void

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.

AddModelGroup ( Stream modelGroupStream ) : void

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.

AddModelGroup ( byte inData ) : void

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.

ContainsGroup ( ModelGroup modelGroup ) : bool
Dispose ( ) : void

Releases all resource used by the Warcraft.WMO.WMO object.

Call Dispose when you are finished using the Warcraft.WMO.WMO. The Dispose method leaves the Warcraft.WMO.WMO in an unusable state. After calling Dispose, you must release all references to the Warcraft.WMO.WMO so the garbage collector can reclaim the memory that the Warcraft.WMO.WMO was occupying.

GetMaterial ( byte materialID ) : ModelMaterial
GetUsedTextures ( ) : List
ResolveInternalGroupName ( ModelGroup modelGroup ) : string
WMO ( byte inData ) : System

Private Methods

Méthode Description
PostResolveStringReferences ( ) : void
ResolveInternalDescriptiveGroupName ( ModelGroup modelGroup ) : string

Method Details

AddModelGroup() public méthode

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.
public AddModelGroup ( ModelGroup modelGroup ) : void
modelGroup Warcraft.WMO.GroupFile.ModelGroup Model group.
Résultat void

AddModelGroup() public méthode

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.
public AddModelGroup ( Stream modelGroupStream ) : void
modelGroupStream Stream Stream containing the Model group.
Résultat void

AddModelGroup() public méthode

Adds a model group to the model object. The model group must be listed in the root object, or it won't be accepted by the model.
public AddModelGroup ( byte inData ) : void
inData byte Byte array containing the model group.
Résultat void

ContainsGroup() public méthode

public ContainsGroup ( ModelGroup modelGroup ) : bool
modelGroup Warcraft.WMO.GroupFile.ModelGroup
Résultat bool

Dispose() public méthode

Releases all resource used by the Warcraft.WMO.WMO object.
Call Dispose when you are finished using the Warcraft.WMO.WMO. The Dispose method leaves the Warcraft.WMO.WMO in an unusable state. After calling Dispose, you must release all references to the Warcraft.WMO.WMO so the garbage collector can reclaim the memory that the Warcraft.WMO.WMO was occupying.
public Dispose ( ) : void
Résultat void

GetMaterial() public méthode

public GetMaterial ( byte materialID ) : ModelMaterial
materialID byte
Résultat Warcraft.WMO.RootFile.Chunks.ModelMaterial

GetUsedTextures() public méthode

public GetUsedTextures ( ) : List
Résultat List

ResolveInternalGroupName() public méthode

public ResolveInternalGroupName ( ModelGroup modelGroup ) : string
modelGroup Warcraft.WMO.GroupFile.ModelGroup
Résultat string

WMO() public méthode

public WMO ( byte inData ) : System
inData byte
Résultat System

Property Details

Groups public_oe property

public List Groups
Résultat List

RootInformation public_oe property

public ModelRoot,Warcraft.WMO.RootFile RootInformation
Résultat Warcraft.WMO.RootFile.ModelRoot