![]() |
TrinityCore
|
#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 |
| WMOGroup::WMOGroup | ( | std::string const & | filename | ) |
|
default |
| WMOGroup::~WMOGroup | ( | ) |
| int WMOGroup::ConvertToVMAPGroupWmo | ( | FILE * | output, |
| bool | preciseVectorData | ||
| ) |
Definition at line 359 of file wmo.cpp.
References ASSERT, bbcorn1, bbcorn2, groupLiquid, groupWMOID, hlq, LiquBytes, LiquEx, LiquEx_size, liquflags, MOBA, moba_size, MobaEx, mogpFlags, MOVT, MOVX, MPY2, nTriangles, nVertices, preciseVectorData, WMO_MATERIAL_COLLISION, WMO_MATERIAL_DETAIL, WMO_MATERIAL_RENDER, WMOLiquidHeader::xtiles, and WMOLiquidHeader::ytiles.
| bool WMOGroup::open | ( | WMORoot * | rootWMO | ) |
Definition at line 216 of file wmo.cpp.
References bbcorn1, bbcorn2, CascStorage, CASCFile::close(), descGroupName, DoodadReferences, filename, WMORoot::flags, fogIdx, GetLiquidTypeId(), CASCFile::getPos(), groupLiquid, groupName, groupWMOID, hlq, CASCFile::isEof(), IsLiquidIgnored(), LiquBytes, LiquEx, LiquEx_size, liquflags, MOBA, moba_size, mogpFlags, mogpFlags2, moprIdx, moprNItems, MOVT, MOVX, MPY2, nBatchA, nBatchB, nBatchC, nextSplitChildGroupIndex, nTriangles, nVertices, parentOrFirstChildSplitGroupIndex, CASCFile::read(), CASCFile::seek(), WMOLiquidHeader::xtiles, WMOLiquidHeader::xverts, WMOLiquidHeader::ytiles, and WMOLiquidHeader::yverts.
Referenced by ExtractSingleWmo().
| bool WMOGroup::ShouldSkip | ( | WMORoot const * | root | ) | const |
Definition at line 559 of file wmo.cpp.
References groupName, WMORoot::GroupNames, and mogpFlags.
| float WMOGroup::bbcorn1[3] |
Definition at line 138 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().
| float WMOGroup::bbcorn2[3] |
Definition at line 139 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and WMOGroup().
| std::vector<uint16> WMOGroup::DoodadReferences |
| uint32 WMOGroup::groupLiquid |
Definition at line 144 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int WMOGroup::groupName |
Definition at line 136 of file wmo.h.
Referenced by open(), and ShouldSkip().
| uint32 WMOGroup::groupWMOID |
Definition at line 144 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| WMOLiquidHeader* WMOGroup::hlq |
Definition at line 133 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| char* WMOGroup::LiquBytes |
Definition at line 135 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| WMOLiquidVert* WMOGroup::LiquEx |
Definition at line 134 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| int WMOGroup::LiquEx_size |
Definition at line 150 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| uint32 WMOGroup::liquflags |
Definition at line 153 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| uint16* WMOGroup::MOBA |
Definition at line 131 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| int WMOGroup::moba_size |
Definition at line 149 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int* WMOGroup::MobaEx |
Definition at line 132 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo().
| int WMOGroup::mogpFlags |
Definition at line 137 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), GetLiquidTypeId(), open(), and ShouldSkip().
| float* WMOGroup::MOVT |
Definition at line 130 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), open(), and ~WMOGroup().
| std::unique_ptr<uint32[]> WMOGroup::MOVX |
Definition at line 129 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| std::unique_ptr<uint16[]> WMOGroup::MPY2 |
Definition at line 128 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int16 WMOGroup::nextSplitChildGroupIndex |
| int WMOGroup::nTriangles |
Definition at line 152 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| unsigned int WMOGroup::nVertices |
Definition at line 151 of file wmo.h.
Referenced by ConvertToVMAPGroupWmo(), and open().
| int16 WMOGroup::parentOrFirstChildSplitGroupIndex |