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

#include <wmo.h>

Public Member Functions

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

Public Attributes

std::unique_ptr< uint16[]> MPY2
 
std::unique_ptr< uint32[]> MOVX
 
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
 
uint32 mogpFlags2
 
int16 parentOrFirstChildSplitGroupIndex
 
int16 nextSplitChildGroupIndex
 
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 121 of file wmo.h.

Constructor & Destructor Documentation

◆ WMOGroup() [1/2]

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

Definition at line 203 of file wmo.cpp.

References bbcorn1, and bbcorn2.

◆ WMOGroup() [2/2]

WMOGroup::WMOGroup ( WMOGroup &&  )
default

◆ ~WMOGroup()

WMOGroup::~WMOGroup ( )

Definition at line 575 of file wmo.cpp.

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

Member Function Documentation

◆ ConvertToVMAPGroupWmo()

◆ GetLiquidTypeId()

uint32 WMOGroup::GetLiquidTypeId ( uint32  liquidTypeId)

Definition at line 543 of file wmo.cpp.

References mogpFlags.

Referenced by open().

◆ open()

◆ operator=()

WMOGroup & WMOGroup::operator= ( WMOGroup &&  )
default

◆ ShouldSkip()

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

Definition at line 559 of file wmo.cpp.

References groupName, WMORoot::GroupNames, and mogpFlags.

Member Data Documentation

◆ bbcorn1

float WMOGroup::bbcorn1[3]

Definition at line 138 of file wmo.h.

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

◆ bbcorn2

float WMOGroup::bbcorn2[3]

Definition at line 139 of file wmo.h.

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

◆ descGroupName

int WMOGroup::descGroupName

Definition at line 136 of file wmo.h.

Referenced by open().

◆ DoodadReferences

std::vector<uint16> WMOGroup::DoodadReferences

Definition at line 155 of file wmo.h.

Referenced by open().

◆ filename

std::string WMOGroup::filename
private

Definition at line 124 of file wmo.h.

Referenced by open().

◆ fogIdx

uint32 WMOGroup::fogIdx

Definition at line 144 of file wmo.h.

Referenced by open().

◆ groupLiquid

uint32 WMOGroup::groupLiquid

Definition at line 144 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ groupName

int WMOGroup::groupName

Definition at line 136 of file wmo.h.

Referenced by open(), and ShouldSkip().

◆ groupWMOID

uint32 WMOGroup::groupWMOID

Definition at line 144 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ hlq

WMOLiquidHeader* WMOGroup::hlq

Definition at line 133 of file wmo.h.

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

◆ LiquBytes

char* WMOGroup::LiquBytes

Definition at line 135 of file wmo.h.

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

◆ LiquEx

WMOLiquidVert* WMOGroup::LiquEx

Definition at line 134 of file wmo.h.

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

◆ LiquEx_size

int WMOGroup::LiquEx_size

Definition at line 150 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ liquflags

uint32 WMOGroup::liquflags

Definition at line 153 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ MOBA

uint16* WMOGroup::MOBA

Definition at line 131 of file wmo.h.

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

◆ moba_size

int WMOGroup::moba_size

Definition at line 149 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ MobaEx

int* WMOGroup::MobaEx

Definition at line 132 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo().

◆ mogpFlags

int WMOGroup::mogpFlags

Definition at line 137 of file wmo.h.

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

◆ mogpFlags2

uint32 WMOGroup::mogpFlags2

Definition at line 145 of file wmo.h.

Referenced by open().

◆ moprIdx

uint16 WMOGroup::moprIdx

Definition at line 140 of file wmo.h.

Referenced by open().

◆ moprNItems

uint16 WMOGroup::moprNItems

Definition at line 141 of file wmo.h.

Referenced by open().

◆ MOVT

float* WMOGroup::MOVT

Definition at line 130 of file wmo.h.

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

◆ MOVX

std::unique_ptr<uint32[]> WMOGroup::MOVX

Definition at line 129 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ MPY2

std::unique_ptr<uint16[]> WMOGroup::MPY2

Definition at line 128 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ nBatchA

uint16 WMOGroup::nBatchA

Definition at line 142 of file wmo.h.

Referenced by open().

◆ nBatchB

uint16 WMOGroup::nBatchB

Definition at line 143 of file wmo.h.

Referenced by open().

◆ nBatchC

uint32 WMOGroup::nBatchC

Definition at line 144 of file wmo.h.

Referenced by open().

◆ nextSplitChildGroupIndex

int16 WMOGroup::nextSplitChildGroupIndex

Definition at line 147 of file wmo.h.

Referenced by open().

◆ nTriangles

int WMOGroup::nTriangles

Definition at line 152 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ nVertices

unsigned int WMOGroup::nVertices

Definition at line 151 of file wmo.h.

Referenced by ConvertToVMAPGroupWmo(), and open().

◆ parentOrFirstChildSplitGroupIndex

int16 WMOGroup::parentOrFirstChildSplitGroupIndex

Definition at line 146 of file wmo.h.

Referenced by open().


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