mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
37
src/tools/mesh_extractor/ContinentBuilder.h
Normal file
37
src/tools/mesh_extractor/ContinentBuilder.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C)
|
||||
*
|
||||
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||
*/
|
||||
|
||||
#ifndef CONT_BUILDER_H
|
||||
#define CONT_BUILDER_H
|
||||
#include <string>
|
||||
#include "WDT.h"
|
||||
#include "Define.h"
|
||||
|
||||
class ContinentBuilder
|
||||
{
|
||||
public:
|
||||
ContinentBuilder(std::string continent, uint32 mapId, WDT* wdt, uint32 tn) :
|
||||
Continent(continent), TileMap(wdt), MapId(mapId),
|
||||
NumberOfThreads(tn), tileXMin(64), tileYMin(64), tileXMax(0), tileYMax(0)
|
||||
{}
|
||||
|
||||
void Build();
|
||||
void getTileBounds(uint32 tileX, uint32 tileY, float* verts, int vertCount, float* bmin, float* bmax);
|
||||
void CalculateTileBounds();
|
||||
float bmin[3];
|
||||
float bmax[3];
|
||||
private:
|
||||
std::string Continent;
|
||||
WDT* TileMap;
|
||||
uint32 MapId;
|
||||
uint32 NumberOfThreads;
|
||||
int tileXMin;
|
||||
int tileYMin;
|
||||
int tileXMax;
|
||||
int tileYMax;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user