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
Mostra file Open project: Nihlus/libwarcraft

Public Properties

Property Type Description
Groups List
RootInformation Warcraft.WMO.RootFile.ModelRoot

Public Methods

Method 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

Method Description
PostResolveStringReferences ( ) : void
ResolveInternalDescriptiveGroupName ( ModelGroup modelGroup ) : string

Method Details

AddModelGroup() public method

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.
return void

AddModelGroup() public method

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.
return void

AddModelGroup() public method

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.
return void

ContainsGroup() public method

public ContainsGroup ( ModelGroup modelGroup ) : bool
modelGroup Warcraft.WMO.GroupFile.ModelGroup
return bool

Dispose() public method

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
return void

GetMaterial() public method

public GetMaterial ( byte materialID ) : ModelMaterial
materialID byte
return Warcraft.WMO.RootFile.Chunks.ModelMaterial

GetUsedTextures() public method

public GetUsedTextures ( ) : List
return List

ResolveInternalGroupName() public method

public ResolveInternalGroupName ( ModelGroup modelGroup ) : string
modelGroup Warcraft.WMO.GroupFile.ModelGroup
return string

WMO() public method

public WMO ( byte inData ) : System
inData byte
return System

Property Details

Groups public_oe property

public List Groups
return List

RootInformation public_oe property

public ModelRoot,Warcraft.WMO.RootFile RootInformation
return Warcraft.WMO.RootFile.ModelRoot