Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
VMAP Namespace Reference

Classes

struct  AreaInfo
class  AreaInfoCallback
struct  GModelRayCallback
class  GroupModel
struct  GroupModel_Raw
class  IntersectionCallBack
class  IVMapManager
struct  LocationInfo
class  LocationInfoCallback
class  ManagedModel
class  MapRayCallback
struct  MapSpawns
class  MeshTriangle
class  ModelInstance
class  ModelPosition
class  ModelSpawn
class  MyCollisionDetection
class  StaticMapTree
class  TileAssembler
class  TriBoundFunc
class  VMapFactory
class  VMapManager2
class  WModelAreaCallback
struct  WModelRayCallBack
class  WmoLiquid
struct  WMOLiquidHeader
class  WorldModel
struct  WorldModel_Raw

Typedefs

typedef UNORDERED_MAP< uint32, StaticMapTree * > InstanceTreeMap
typedef std::map< uint32, MapSpawns * > MapData
typedef UNORDERED_MAP< std::string, ManagedModelModelFileMap
typedef std::multimap< uint32, uint32TileMap
typedef std::map< uint32, ModelSpawnUniqueEntryMap

Enumerations

enum  ModelFlags { MOD_M2 = 1 , MOD_WORLDSPAWN = 1<<1 , MOD_HAS_BOUND = 1<<2 }
enum  VMAP_LOAD_RESULT { VMAP_LOAD_RESULT_ERROR , VMAP_LOAD_RESULT_OK , VMAP_LOAD_RESULT_IGNORED }

Functions

bool IntersectTriangle (const MeshTriangle &tri, std::vector< Vector3 >::const_iterator points, const G3D::Ray &ray, float &distance)
bool readChunk (FILE *rf, char *dest, const char *compare, uint32 len)

Variables

const char GAMEOBJECT_MODELS [] = "GameObjectModels.dtree"
IVMapManagergVMapManager = NULL
const char RAW_VMAP_MAGIC [] = "VMAP053"
const char VMAP_MAGIC [] = "VMAP_5.3"

Detailed Description

This is the minimum interface to the VMapMamager.

This is the access point to the VMapManager.

The Class is mainly taken from G3D/AABSPTree.h but modified to be able to use our internal data structure. This is an iterator that helps us analysing the BSP-Trees. The collision detection is modified to return true, if we are inside an object.

Typedef Documentation

◆ InstanceTreeMap

Definition at line 53 of file VMapManager2.h.

◆ MapData

typedef std::map<uint32, MapSpawns*> VMAP::MapData

Definition at line 51 of file TileAssembler.h.

◆ ModelFileMap

Definition at line 54 of file VMapManager2.h.

◆ TileMap

typedef std::multimap<uint32, uint32> VMAP::TileMap

Definition at line 43 of file TileAssembler.h.

◆ UniqueEntryMap

Definition at line 42 of file TileAssembler.h.

Enumeration Type Documentation

◆ ModelFlags

Enumerator
MOD_M2 
MOD_WORLDSPAWN 
MOD_HAS_BOUND 

Definition at line 22 of file ModelInstance.h.

◆ VMAP_LOAD_RESULT

Enumerator
VMAP_LOAD_RESULT_ERROR 
VMAP_LOAD_RESULT_OK 
VMAP_LOAD_RESULT_IGNORED 

Definition at line 21 of file IVMapManager.h.

Function Documentation

◆ IntersectTriangle()

bool VMAP::IntersectTriangle ( const MeshTriangle & tri,
std::vector< Vector3 >::const_iterator points,
const G3D::Ray & ray,
float & distance )

◆ readChunk()

Variable Documentation

◆ GAMEOBJECT_MODELS

const char VMAP::GAMEOBJECT_MODELS[] = "GameObjectModels.dtree"

◆ gVMapManager

IVMapManager* VMAP::gVMapManager = NULL

◆ RAW_VMAP_MAGIC

const char VMAP::RAW_VMAP_MAGIC[] = "VMAP053"

Definition at line 16 of file VMapDefinitions.h.

Referenced by VMAP::WorldModel_Raw::Read().

◆ VMAP_MAGIC