mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[9824] Use in taxi flight movegen original taxipath data.
This commit is contained in:
parent
c52e9c5d27
commit
57dcc84940
15 changed files with 149 additions and 146 deletions
|
|
@ -19,7 +19,9 @@
|
|||
#ifndef MANGOS_DBCSTRUCTURE_H
|
||||
#define MANGOS_DBCSTRUCTURE_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "DBCEnums.h"
|
||||
#include "Path.h"
|
||||
#include "Platform/Define.h"
|
||||
|
||||
#include <map>
|
||||
|
|
@ -1846,7 +1848,17 @@ struct TaxiPathBySourceAndDestination
|
|||
typedef std::map<uint32,TaxiPathBySourceAndDestination> TaxiPathSetForSource;
|
||||
typedef std::map<uint32,TaxiPathSetForSource> TaxiPathSetBySource;
|
||||
|
||||
typedef std::vector<TaxiPathNodeEntry const*> TaxiPathNodeList;
|
||||
struct TaxiPathNodePtr
|
||||
{
|
||||
TaxiPathNodePtr() : i_ptr(NULL) {}
|
||||
TaxiPathNodePtr(TaxiPathNodeEntry const* ptr) : i_ptr(ptr) {}
|
||||
|
||||
TaxiPathNodeEntry const* i_ptr;
|
||||
|
||||
operator TaxiPathNodeEntry const& () const { return *i_ptr; }
|
||||
};
|
||||
|
||||
typedef Path<TaxiPathNodePtr,TaxiPathNodeEntry const> TaxiPathNodeList;
|
||||
typedef std::vector<TaxiPathNodeList> TaxiPathNodesByPath;
|
||||
|
||||
#define TaxiMaskSize 12
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue