TrinityCore
Loading...
Searching...
No Matches
WMOGroup Class Reference

#include <wmo.h>

Public Member Functions

 WMOGroup (std::string const &filename)
 
 ~WMOGroup ()
 
bool open (WMORoot *rootWMO)
 
int ConvertToVMAPGroupWmo (FILE *output, bool preciseVectorData)
 
uint32 GetLiquidTypeId (uint32 liquidTypeId)
 
bool ShouldSkip (WMORoot const *root) const
 

Public Attributes

char * MOPY
 
uint16 * MOVI
 
uint16 * MoviEx
 
float * MOVT
 
uint16 * MOBA
 
int * MobaEx
 
WMOLiquidHeader * hlq
 
WMOLiquidVert * LiquEx
 
char * LiquBytes
 
int groupName
 
int descGroupName
 
int mogpFlags
 
float bbcorn1 [3]
 
float bbcorn2 [3]
 
uint16 moprIdx
 
uint16 moprNItems
 
uint16 nBatchA
 
uint16 nBatchB
 
uint32 nBatchC
 
uint32 fogIdx
 
uint32 groupLiquid
 
uint32 groupWMOID
 
int mopy_size
 
int moba_size
 
int LiquEx_size
 
unsigned int nVertices
 
int nTriangles
 
uint32 liquflags
 
std::vector< uint16 > DoodadReferences
 

Private Attributes

std::string filename
 

Detailed Description

Definition at line 117 of file wmo.h.

Constructor & Destructor Documentation

◆ WMOGroup()

WMOGroup::WMOGroup ( std::string const &  filename)

Definition at line 159 of file wmo.cpp.

References bbcorn1, and bbcorn2.

◆ ~WMOGroup()

WMOGroup::~WMOGroup ( )

Definition at line 514 of file wmo.cpp.

References hlq, LiquBytes, LiquEx, MOBA, MOPY, MOVI, and MOVT.

Member Function Documentation

◆ ConvertToVMAPGroupWmo()

int WMOGroup::ConvertToVMAPGroupWmo ( FILE *  output,
bool  preciseVectorData 
)

◆ GetLiquidTypeId()

uint32 WMOGroup::GetLiquidTypeId ( uint32  liquidTypeId)

Definition at line 482 of file wmo.cpp.

References mogpFlags.

Referenced by open().

◆ open()

◆ ShouldSkip()

bool WMOGroup::ShouldSkip ( WMORoot const *  root) const

Definition at line 498 of file wmo.cpp.

References groupName, WMORoot::GroupNames, and mogpFlags.

Referenced by ExtractSingleWmo().

Member Data Documentation

◆ bbcorn1

float WMOGroup::bbcorn1[3]

Definition at line 135 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().

◆ bbcorn2

float WMOGroup::bbcorn2[3]

Definition at line 136 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().

◆ descGroupName

int WMOGroup::descGroupName

Definition at line 133 of file wmo.h.

Referenced by open().

◆ DoodadReferences

std::vector<uint16> WMOGroup::DoodadReferences

Definition at line 149 of file wmo.h.

Referenced by ExtractSingleWmo(), and open().

◆ filename

std::string WMOGroup::filename
private

Definition at line 120 of file wmo.h.

Referenced by open().

◆ fogIdx

uint32 WMOGroup::fogIdx

Definition at line 141 of file wmo.h.

Referenced by open().

◆ groupLiquid

uint32 WMOGroup::groupLiquid

Definition at line 141 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ groupName

int WMOGroup::groupName

Definition at line 133 of file wmo.h.

Referenced by open(), and ShouldSkip().

◆ groupWMOID

uint32 WMOGroup::groupWMOID

Definition at line 141 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ hlq

WMOLiquidHeader* WMOGroup::hlq

Definition at line 130 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ LiquBytes

char* WMOGroup::LiquBytes

Definition at line 132 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ LiquEx

WMOLiquidVert* WMOGroup::LiquEx

Definition at line 131 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ LiquEx_size

int WMOGroup::LiquEx_size

Definition at line 144 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ liquflags

uint32 WMOGroup::liquflags

Definition at line 147 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ MOBA

uint16* WMOGroup::MOBA

Definition at line 128 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ moba_size

int WMOGroup::moba_size

Definition at line 143 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ MobaEx

int* WMOGroup::MobaEx

Definition at line 129 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo().

◆ mogpFlags

int WMOGroup::mogpFlags

Definition at line 134 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), GetLiquidTypeId(), open(), and ShouldSkip().

◆ moprIdx

uint16 WMOGroup::moprIdx

Definition at line 137 of file wmo.h.

Referenced by open().

◆ moprNItems

uint16 WMOGroup::moprNItems

Definition at line 138 of file wmo.h.

Referenced by open().

◆ MOPY

char* WMOGroup::MOPY

Definition at line 124 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ mopy_size

int WMOGroup::mopy_size

Definition at line 143 of file wmo.h.

Referenced by open().

◆ MOVI

uint16* WMOGroup::MOVI

Definition at line 125 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ MoviEx

uint16* WMOGroup::MoviEx

Definition at line 126 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo().

◆ MOVT

float* WMOGroup::MOVT

Definition at line 127 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().

◆ nBatchA

uint16 WMOGroup::nBatchA

Definition at line 139 of file wmo.h.

Referenced by open().

◆ nBatchB

uint16 WMOGroup::nBatchB

Definition at line 140 of file wmo.h.

Referenced by open().

◆ nBatchC

uint32 WMOGroup::nBatchC

Definition at line 141 of file wmo.h.

Referenced by open().

◆ nTriangles

int WMOGroup::nTriangles

Definition at line 146 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ nVertices

unsigned int WMOGroup::nVertices

Definition at line 145 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().


The documentation for this class was generated from the following files: