mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
Cleanups in instance_template and map entrance DBC data.
This commit is contained in:
parent
43cc07fbbc
commit
48254e3879
7 changed files with 63 additions and 51 deletions
|
|
@ -189,14 +189,11 @@ public:
|
|||
|
||||
struct InstanceTemplate
|
||||
{
|
||||
uint32 map;
|
||||
uint32 parent;
|
||||
uint32 map; // instance map
|
||||
uint32 parent; // non-continent parent instance (for instance with entrance in another instances)
|
||||
// or 0 (not related to continent 0 map id)
|
||||
uint32 levelMin;
|
||||
uint32 levelMax;
|
||||
float startLocX;
|
||||
float startLocY;
|
||||
float startLocZ;
|
||||
float startLocO;
|
||||
uint32 script_id;
|
||||
};
|
||||
|
||||
|
|
@ -347,17 +344,6 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
|||
bool IsBattleGround() const { return i_mapEntry && i_mapEntry->IsBattleGround(); }
|
||||
bool IsBattleArena() const { return i_mapEntry && i_mapEntry->IsBattleArena(); }
|
||||
bool IsBattleGroundOrArena() const { return i_mapEntry && i_mapEntry->IsBattleGroundOrArena(); }
|
||||
bool GetEntrancePos(int32 &mapid, float &x, float &y)
|
||||
{
|
||||
if(!i_mapEntry)
|
||||
return false;
|
||||
if(i_mapEntry->entrance_map < 0)
|
||||
return false;
|
||||
mapid = i_mapEntry->entrance_map;
|
||||
x = i_mapEntry->entrance_x;
|
||||
y = i_mapEntry->entrance_y;
|
||||
return true;
|
||||
}
|
||||
|
||||
void AddObjectToRemoveList(WorldObject *obj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue