C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Groups List
RootInformation Warcraft.WMO.RootFile.ModelRoot

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
PostResolveStringReferences ( ) : void
ResolveInternalDescriptiveGroupName ( ModelGroup modelGroup ) : string

Описание методов

AddModelGroup() публичный Метод

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.
Результат void

AddModelGroup() публичный Метод

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.
Результат void

AddModelGroup() публичный Метод

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.
Результат void

ContainsGroup() публичный Метод

public ContainsGroup ( ModelGroup modelGroup ) : bool
modelGroup Warcraft.WMO.GroupFile.ModelGroup
Результат bool

Dispose() публичный Метод

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
Результат void

GetMaterial() публичный Метод

public GetMaterial ( byte materialID ) : ModelMaterial
materialID byte
Результат Warcraft.WMO.RootFile.Chunks.ModelMaterial

GetUsedTextures() публичный Метод

public GetUsedTextures ( ) : List
Результат List

ResolveInternalGroupName() публичный Метод

public ResolveInternalGroupName ( ModelGroup modelGroup ) : string
modelGroup Warcraft.WMO.GroupFile.ModelGroup
Результат string

WMO() публичный Метод

public WMO ( byte inData ) : System
inData byte
Результат System

Описание свойств

Groups публичное свойство

public List Groups
Результат List

RootInformation публичное свойство

public ModelRoot,Warcraft.WMO.RootFile RootInformation
Результат Warcraft.WMO.RootFile.ModelRoot