![]() |
TrinityCore
|
#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 |
| WMOGroup::WMOGroup | ( | std::string const & | filename | ) |
| WMOGroup::~WMOGroup | ( | ) |
| int WMOGroup::ConvertToVMAPGroupWmo | ( | FILE * | output, |
| bool | preciseVectorData | ||
| ) |
Definition at line 291 of file wmo.cpp.
References ASSERT, bbcorn1, bbcorn2, groupLiquid, groupWMOID, hlq, LiquBytes, LiquEx, LiquEx_size, liquflags, MOBA, moba_size, MobaEx, mogpFlags, MOPY, MOVI, MoviEx, MOVT, nTriangles, nVertices, preciseVectorData, WMO_MATERIAL_COLLISION, WMO_MATERIAL_DETAIL, WMO_MATERIAL_RENDER, WMOLiquidHeader::xtiles, and WMOLiquidHeader::ytiles.
Referenced by ExtractSingleWmo().
| bool WMOGroup::open | ( | WMORoot * | rootWMO | ) |
Definition at line 170 of file wmo.cpp.
References bbcorn1, bbcorn2, MPQFile::close(), descGroupName, DoodadReferences, filename, WMORoot::flags, flipcc(), fogIdx, GetLiquidTypeId(), MPQFile::getPos(), groupLiquid, groupName, groupWMOID, hlq, MPQFile::isEof(), LiquBytes, LiquEx, LiquEx_size, liquflags, MOBA, moba_size, mogpFlags, moprIdx, moprNItems, MOPY, mopy_size, MOVI, MOVT, nBatchA, nBatchB, nBatchC, nTriangles, nVertices, MPQFile::read(), MPQFile::seek(), WMOLiquidHeader::xtiles, WMOLiquidHeader::xverts, WMOLiquidHeader::ytiles, and WMOLiquidHeader::yverts.
Referenced by ExtractSingleWmo().
| bool WMOGroup::ShouldSkip | ( | WMORoot const * | root | ) | const |
Definition at line 498 of file wmo.cpp.
References groupName, WMORoot::GroupNames, and mogpFlags.
Referenced by ExtractSingleWmo().
| float WMOGroup::bbcorn1[3] |
Definition at line 135 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().
| float WMOGroup::bbcorn2[3] |
Definition at line 136 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().
| std::vector<uint16> WMOGroup::DoodadReferences |
Definition at line 149 of file wmo.h.
Referenced by ExtractSingleWmo(), and open().
| uint32 WMOGroup::groupLiquid |
Definition at line 141 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int WMOGroup::groupName |
Definition at line 133 of file wmo.h.
Referenced by open(), and ShouldSkip().
| uint32 WMOGroup::groupWMOID |
Definition at line 141 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| WMOLiquidHeader* WMOGroup::hlq |
Definition at line 130 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| char* WMOGroup::LiquBytes |
Definition at line 132 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| WMOLiquidVert* WMOGroup::LiquEx |
Definition at line 131 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| int WMOGroup::LiquEx_size |
Definition at line 144 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| uint32 WMOGroup::liquflags |
Definition at line 147 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| uint16* WMOGroup::MOBA |
Definition at line 128 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| int WMOGroup::moba_size |
Definition at line 143 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int* WMOGroup::MobaEx |
Definition at line 129 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo().
| int WMOGroup::mogpFlags |
Definition at line 134 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), GetLiquidTypeId(), open(), and ShouldSkip().
| char* WMOGroup::MOPY |
Definition at line 124 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| uint16* WMOGroup::MOVI |
Definition at line 125 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| uint16* WMOGroup::MoviEx |
Definition at line 126 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo().
| float* WMOGroup::MOVT |
Definition at line 127 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| int WMOGroup::nTriangles |
Definition at line 146 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| unsigned int WMOGroup::nVertices |
Definition at line 145 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().