AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "M2Stores.h"
#include "Containers.h"
#include "DBCStores.h"
#include "Log.h"
#include "M2Structure.h"
#include "World.h"
#include <boost/filesystem/path.hpp>
#include <fstream>
Go to the source code of this file.
Typedefs | |
typedef std::vector< FlyByCamera > | FlyByCameraCollection |
Functions | |
G3D::Vector3 | TranslateLocation (G3D::Vector4 const *DBCPosition, G3D::Vector3 const *basePosition, G3D::Vector3 const *splineVector) |
bool | readCamera (M2Camera const *cam, uint32 buffSize, M2Header const *header, CinematicCameraEntry const *dbcentry) |
void | LoadM2Cameras (std::string const &dataPath) |
std::vector< FlyByCamera > const * | GetFlyByCameras (uint32 cinematicCameraId) |
Variables | |
std::unordered_map< uint32, FlyByCameraCollection > | sFlyByCameraStore |
typedef std::vector<FlyByCamera> FlyByCameraCollection |
std::vector< FlyByCamera > const * GetFlyByCameras | ( | uint32 | cinematicCameraId | ) |
References Acore::Containers::MapGetValuePtr(), and sFlyByCameraStore.
Referenced by CinematicMgr::BeginCinematic(), and debug_commandscript::HandleDebugPlayCinematicCommand().
void LoadM2Cameras | ( | std::string const & | dataPath | ) |
References getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, M2Header::ofsCameras, readCamera(), sCinematicCameraStore, and sFlyByCameraStore.
Referenced by World::SetInitialWorldSettings().
bool readCamera | ( | M2Camera const * | cam, |
uint32 | buffSize, | ||
M2Header const * | header, | ||
CinematicCameraEntry const * | dbcentry | ||
) |
References Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), CinematicCameraEntry::ID, FlyByCamera::locations, M2Array::number, M2Array::offset_elements, CinematicCameraEntry::Origin, CinematicCameraEntry::OriginFacing, M2SplineKey< T >::p0, M2Camera::position_base, M2Camera::positions, positions, Position::Relocate(), Position::SetOrientation(), sFlyByCameraStore, M2Camera::target_position_base, M2Camera::target_positions, FlyByCamera::timeStamp, M2Track::timestamps, TranslateLocation(), M2Track::values, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by LoadM2Cameras().
G3D::Vector3 TranslateLocation | ( | G3D::Vector4 const * | DBCPosition, |
G3D::Vector3 const * | basePosition, | ||
G3D::Vector3 const * | splineVector | ||
) |
Referenced by readCamera().
std::unordered_map<uint32, FlyByCameraCollection> sFlyByCameraStore |
Referenced by GetFlyByCameras(), LoadM2Cameras(), and readCamera().