TrinityCore
M2Stores.cpp File Reference
#include "M2Stores.h"
#include "Containers.h"
#include "DB2Stores.h"
#include "Log.h"
#include "M2Structure.h"
#include "Timer.h"
#include <boost/filesystem/path.hpp>
#include <G3D/Vector4.h>
#include <fstream>
+ Include dependency graph for M2Stores.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< FlyByCameraFlyByCameraCollection
 

Functions

G3D::Vector3 translateLocation (G3D::Vector4 const *dbcLocation, G3D::Vector3 const *basePosition, G3D::Vector3 const *splineVector)
 
bool readCamera (M2Camera const *cam, uint32 buffSize, M2Header const *header, CinematicCameraEntry const *dbcentry)
 
TC_GAME_API void LoadM2Cameras (std::string const &dataPath)
 
std::vector< FlyByCamera > const * GetFlyByCameras (uint32 cinematicCameraId)
 

Variables

std::unordered_map< uint32, FlyByCameraCollectionsFlyByCameraStore
 

Typedef Documentation

◆ FlyByCameraCollection

typedef std::vector<FlyByCamera> FlyByCameraCollection

Definition at line 28 of file M2Stores.cpp.

Function Documentation

◆ GetFlyByCameras()

std::vector< FlyByCamera > const * GetFlyByCameras ( uint32  cinematicCameraId)

Definition at line 267 of file M2Stores.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadM2Cameras()

TC_GAME_API void LoadM2Cameras ( std::string const &  dataPath)

Definition at line 174 of file M2Stores.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readCamera()

bool readCamera ( M2Camera const *  cam,
uint32  buffSize,
M2Header const *  header,
CinematicCameraEntry const *  dbcentry 
)

Definition at line 51 of file M2Stores.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ translateLocation()

G3D::Vector3 translateLocation ( G3D::Vector4 const *  dbcLocation,
G3D::Vector3 const *  basePosition,
G3D::Vector3 const *  splineVector 
)

Definition at line 32 of file M2Stores.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ sFlyByCameraStore

std::unordered_map<uint32, FlyByCameraCollection> sFlyByCameraStore

Definition at line 29 of file M2Stores.cpp.